We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9414678 commit 0ceb956Copy full SHA for 0ceb956
Mapping/kmeans_clustering/kmeans_clustering.py
@@ -73,7 +73,7 @@ def update_clusters(clusters):
73
mind = min(dlist)
74
min_id = dlist.index(mind)
75
clusters.labels[ip] = min_id
76
- cost += min_id
+ cost += mind
77
78
return clusters, cost
79
0 commit comments