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.
2 parents 9414678 + 0ceb956 commit 9d1a05aCopy full SHA for 9d1a05a
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