Clustering

Grouping similar items together without using predefined labels.

Three books, two sensible groupings

Imagine a collection with an 80-page bird guide, an 80-page poetry book, and a 400-page bird atlas.

Group by page count

The guide and the poetry book sit together because their lengths match. That grouping could help someone looking for a short read.

Group by topic

The bird guide and atlas sit together because their subjects match. That grouping could help someone building a birding shelf.

Choose the meaning of “near”

A clustering method needs a representation of each item and a way to compare items. Changing a feature, its scale, or the distance measure can change the groups. Inspect a few borderline items before giving a cluster a name. The book example illustrates how two reasonable representations answer different questions.

Follow the idea

Embedding · Embeddings represent items as coordinates that can be compared.

Unsupervised learning explains how patterns can be found without target labels.

Examples in the AI guides

Source · scikit-learn’s guide to clustering methods

Return to Clustering in the A–Z glossary