K-Means Clustering Visualizer

  • How to use: click whichever button is green!
  • Which course is this for? Cluster Analysis and Unsupervised Machine Learning in Python
  • How does it work?
  • 0) Initialize cluster centers: pick 3 points randomly (only do this once)
  • 1) Assign points to clusters: decide which cluster every point belongs to, based on which center is closest
  • 2) Recompute cluster centers: new cluster centers are the mean (centroid) of all points currently assigned to that cluster
  • Repeat (1) and (2) until no more changes!

Start learning today

Join 30 day bootcamp for free

4.7/5 from — 600k+ learners