Skip to main content

K-Means

The most popular clustering algorithm.

The Magnet Analogy​

It randomly drops K "Magnets" onto your data map. Every point gets pulled to its closest magnet.

Python Implementation​

K-Means 2D Clustering & Centroid Magnet Finder