HomeData ScienceSilhouette Score: Finding the Right Number of Clusters

Silhouette Score: Finding the Right Number of Clusters

Interactive 3D silhouette-score analyzer: run K-means clustering, watch per-point silhouette bars grow live, and sweep K=2-8 to see which cluster count truly maximizes cluster validity.

Data Science3DModerate60 FPS
ds-topic-88 ↗ Open standalone

K-means will happily split your data into any K you ask for — this simulator shows why picking that K is a real question with a real answer. It draws a hidden mixture of Gaussian blobs, runs Lloyd's algorithm live in 3D, and raises a colored bar over every point whose height and color encode its silhouette coefficient: how much closer it sits to its own cluster than to its nearest rival. Sweep K from 2 to 8 and the panel plots the average silhouette for each value, exposing the peak that marks the number of clusters the data actually supports — the same diagnostic scikit-learn's silhouette_score is built on, and a sharper tool than watching inertia fall on an elbow plot.

⚙ Under the hood

Interactive 3D silhouette-score analyzer: run K-means clustering live, watch a colored bar rise over every point showing how well it fits its cluster, and sweep K=2-8 to find the cluster count that actually maximizes cluster validity.

clusteringk-meanssilhouette-scorecluster-validationunsupervised-learningdata-science

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)