AI ATLASAn interactive field guide
CONCEPT 28 / Unsupervised learning / Repeated refinement

K-means clustering.

Unlabeled points alternate between nearest-center assignment and center movement. Drag starting centers to see different solutions.

Two simple operations, repeated

A two-cluster point cloud is ready. Drag a center in the map or advance a step.

01 / Interactive visualLoaded example
Beams show current assignments
Points and centers use the same X–Y coordinates in the 3D scene and draggable 2D map.

Assignment and centroid update

Drag a center to choose a new start

Why it matters

K-means alternates assignment and arithmetic means; the starting centers can change its final answer.