onevsrest
One-vs-rest (OvR), also known as one-vs-all (OvA), is a strategy for multiclass classification that reduces the problem to multiple binary classifications. For a problem with k classes, OvR trains k independent binary classifiers. Each classifier learns to distinguish one class from the rest. At prediction time, every classifier provides a score or probability for its class, and the final predicted class is the one with the highest score.
Most commonly, the base binary classifier is logistic regression or a linear support vector machine, but any
Advantages of OvR include simplicity and scalability to large numbers of classes, as well as the ability
Limitations include the possibility that the resulting decision boundaries are not globally optimal because they ignore
Related approaches include one-vs-one (OvO), which trains a binary classifier for every pair of classes, and