One-vs-rest is a way to turn a multiclass classification problem into several binary ones. For each category, train a classifier that asks, “Is it this category or not?” section 8.3
For a new example:
- Run it through every category-specific binary classifier. section 8.3
- Compare the probabilities returned by the classifiers. section 8.3
- Choose the category with the highest probability. section 8.3
Sorting animal photos
Classify each photo with three questions: “Is it a dog or not?”, “Is it a cat or not?”, and “Is it a bird or not?” The strongest probability determines the label. section 8.3
Logistic regression can use this strategy to handle multiple categories, while multinomial logistic regression calculates all category probabilities simultaneously under the hood. section 8.3
