the.ai

Unsupervised / Clustering

verified

k-Means Clustering

Pick k points to act as centres, assign every example to its nearest one, move each centre to the mean of what it caught, and repeat. It converges quickly, and it converges to something that depends on where the centres started. Despite the name it has nothing to do with k-nearest-neighbours: this groups unlabelled data, that one classifies using labels.

Viz primitive · budget-splitvariance-removed = 4

variance-removed holds 40% of the budget; rest holds the remaining 60%.

Variance k-means has removed against what is still inside its clusters, in equal units. Drag k to watch each new cluster buy less than the one before it.

4

Reviewed by opendroid · 2026-08-13