Skip to content

Commit

Permalink
Format using black
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleshot committed Sep 12, 2024
1 parent 658fb90 commit f450163
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion medium/K-Means_Clustering/K-Means_Clustering.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import numpy as np
import math


def k_means_clustering(
points: list[tuple[float, float]],
k: int,
Expand All @@ -8,7 +10,8 @@ def k_means_clustering(
) -> list[tuple[float, float]]:
# Your code here
def euc_dist(x1, x2):
return math.sqrt((x2[0] - x1[0])**2 - (x2[1] - x2[1])**2)
return math.sqrt((x2[0] - x1[0]) ** 2 - (x2[1] - x2[1]) ** 2)

for _ in range(max_iterations):
pass

Expand Down

0 comments on commit f450163

Please sign in to comment.