Machine Learning, Clustering, Data Science, Unsupervised Learning, Towards Data Science.
points and the nearest new centroid. A loop has been generated. As a result of this loop we may notice that the k centroids change their location step by step until no more changes are done. In other words centroids do not move any more. Finally, this algorithm aims at minimizing an objective