AI engineering glossary · Classical ML algorithms

What is one-vs-rest?

One-vs-rest (also called One-vs-all): A strategy that handles many classes with a binary classifier by training one model per class, each separating that class from all others combined. At prediction time the model reporting the highest confidence decides the label.

Level: intermediateTopic: Classical ML algorithms

One-vs-rest: an example

For 10 digit classes, train 10 classifiers; the '7 vs everything else' model returns the highest score for a handwritten 7.

Related terms

More Classical ML algorithms terms

Where you learn it

One-vs-rest is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.