How k-means Works
k-means finds k groups with a short loop you can run by hand, place k centers, give each example to its nearest center, move each center to the mean of its examples, and repeat until nothing moves, and because it only ever improves from where it starts, different starting centers can end in different groups.
Updated

- Category
- Machine Learning
- Level
- Journeyman
- Tags
- ai, Centroid, Euclidean Distance, K-Means Clustering, Local Minimum, python