k-means是一种非监督 (从下图0 当中我们可以看到训练数据并没有标签标注类别)的聚类算法
0.initial

1.select centroids randomly
  
 
2.assign points
 
3.update centroids

4.reassign points

5.update centroids

6.reassign points

7.iteration
reference:
https://www.naftaliharris.com/blog/visualizing-k-means-clustering/
转载请注明来源:https://www.cnblogs.com/lnas01/p/10347650.html
原文:https://www.cnblogs.com/lnas01/p/10347650.html