What is the difference between multiclass and multilabel classification? Can you give one everyday example of each?
Supervised learning, Multiclass and multilabel
Level L1 Beginner. Length One-liner. Nature Th Theoretical.
What's being asked
Whether you can tell "exactly one label per example" from "any number of labels per example".
Key idea
In multiclass classification each example gets exactly one label out of several classes. In multilabel classification each example can get several labels at once, or none.
Steps
- Multiclass: read a handwritten digit and say which of it is. The classes exclude each other: it is one digit, never two.
- Multilabel: tag a holiday photo. It can be "beach", "sunset" and "friends" all at the same time, or have none of the tags. The labels do not exclude each other.
- So the first question to ask about a problem is: can one example belong to more than one class at once? If no, it is multiclass. If yes, it is multilabel.
Common mistakes
- Calling any problem with more than two classes multilabel. "More than two classes" is just multiclass; multilabel is about several labels on one example.
- Mixing it up with binary classification, which has only two classes and one label per example.
How long your answer should be
2 sentences, under 30 seconds.
Read this
Previous in Supervised learning: What is a decision tree, and how does it use a chain of yes/no questions to decide the class of a new example? Use "go out to play or stay in" as your example?
Next in Supervised learning: Why should you standardise features before running k-nearest neighbours (k-NN)?