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.
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.
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.
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.