Clustering Playground
Compare centroid-based and density-based clustering on shapes that expose their assumptions. K-Means trains one Lloyd step at a time; DBSCAN uses an actual ε-neighbourhood expansion.
What to observe while you experiment
K-Means and DBSCAN answer different geometric questions. K-Means repeatedly assigns points to the nearest centroid and updates centroids; DBSCAN expands clusters through ε-neighbourhoods around sufficiently dense core points and can label sparse points as noise.
Experiment deliberately
Switch from blobs to moons, then from K-Means to DBSCAN. Predict which assignments will change and why before training.
Ready.