Machine Learning

Hierarchical Clustering

Merge the two closest groups over and over until everything is one, watch the dendrogram grow branch by branch, and drag a cut across it to choose the clusters.

Click the left half to add points · drag the cut line up and down the dendrogram

—
—

merges done—
clusters—
last merge distance—
cut height—

What to observe

  1. Each Step joins the two nearest groups and records how far apart they were as the bar's height. Short bars are tight, obvious groups; tall bars join things reluctantly.
  2. Drag the cut line on the dendrogram. Every branch it crosses is one cluster, so one tree holds the clustering at every scale, and a long gap between bars marks a natural cut.
  3. Switch the linkage. Single-link chains through stepping stones; complete-link and Ward keep groups compact. Same points, different tree.

Shortcuts:space run/pause · s step · r reset · f fullscreen