Skip to content

Commit 9d1a05a

Browse files
authored
Merge pull request AtsushiSakai#195 from HayataToshihiro/develop
fixed miss code.
2 parents 9414678 + 0ceb956 commit 9d1a05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/kmeans_clustering/kmeans_clustering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def update_clusters(clusters):
7373
mind = min(dlist)
7474
min_id = dlist.index(mind)
7575
clusters.labels[ip] = min_id
76-
cost += min_id
76+
cost += mind
7777

7878
return clusters, cost
7979

0 commit comments

Comments
 (0)