All demos

K-Means Clustering Activity

KNN walkthrough

Watch unlabeled points form clusters

K-means ignores the labels and repeatedly groups points around moving centers. The starting centers matter, especially when the data has an awkward shape.

Try this
  1. Choose a dataset and set the number of clusters.
  2. Place centers randomly or by clicking the graph.
  3. Step through assignment and center movement until they settle.
3
Starting centers

Use random centers or click the graph to place each starter center.

Turn labels off to make this feel like unsupervised clustering: the algorithm only sees positions.

Algorithm steps
  1. 2Repeat until stable

Cluster Graph

Neutral label Smile label Surprised label Cluster center Assigned distance

Current Algorithm Step

Step 1 of 3
Current step

Initialize centers