Interactive learning laboratory · Algorithms & Data Science
K-Means Clustering and Centroid Playground
Run k-means iterations on a generated point cloud and watch cluster assignments and centroids converge.
LIVE SIMULATIONCanvas · real-time model
What you’re exploring
K-means alternates two steps: assign each point to its nearest centroid, then move each centroid to the mean of its assigned points. The objective is to reduce within-cluster squared distance.