Labs / Classical ML
K-means clustering
Place centroids, step through assignment and update, and change K and the initialization.
Theory and worked examples: K-means clustering
K-means lab
Synthetic data. Round, similar-size, well-separated groups: the case K-means is built for.
× centroids (μ)points colored by assigned cluster