K-means moves the centroids to the average of the points in a cluster based on their distance e.g. Euclidean. In other words, the algorithm calculates the average of all the points in a cluster and moves the centroid to that average location.This process is repeated until there is no change in the clusters.
Machine Learning A-Z
Thoughts and flashcards derived from Udemy’s course Machine Learning A-Z.