Skip to content
BENIBIX Learn

Clustering vs Classification

Both put examples into groups, so people mix them up. The difference is who names the groups. In classification you name them first and give labelled examples. In clustering nobody names them, and the model finds groups that you then have to explain.

AI📈 Machine Learning

Classification (Machine Learning)

Sorting each case into one of a few known groups, like spam or not spam.

Classification is the machine learning task of putting each example into one of a set of groups. The groups are fixed before training, like spam or not spam, or cat, dog or bird. The model learns from labelled examples of each group. For a new example, it picks the group that fits best. It often gives a chance for each group too.

Example
Jack's model looks at photos of fruit and says apple, banana or pear. Each photo gets exactly one of those three answers.
Why it matters
Many real jobs are a choice between known options. Spam, fraud, illness and faults are all classification.
Full entry
AI📈 Machine Learning

Clustering

Putting things that are alike into groups. Nobody names the groups first.

Clustering is the task of putting similar examples into groups without being told the groups first. The model looks at how close examples are to each other. Examples that are alike end up in the same group, called a cluster. There are no labels, so it is unsupervised. People then look at each cluster and decide what it means.

Example
Lucy's music app clusters 2 million songs by sound. One cluster turns out to be calm piano music, which becomes a new playlist.
Why it matters
It shows you groups you did not know were there, like new kinds of buyers or new kinds of faults.
Full entry

In one line

Classification (Machine Learning)
Sorting each case into one of a few known groups, like spam or not spam.
Clustering
Putting things that are alike into groups. Nobody names the groups first.