AI engineering glossary · Classical ML algorithms

What is one-vs-one?

One-vs-one: A strategy for many-class problems that trains a binary classifier for every pair of classes, then lets the pairwise models vote. It needs k(k-1)/2 models for k classes but each trains on a small slice of data, which suits algorithms that scale badly with data size.

Level: intermediateTopic: Classical ML algorithms

One-vs-one: an example

With 5 classes you train 10 pairwise models; the class that wins the most votes is predicted.

Related terms

More Classical ML algorithms terms

Where you learn it

One-vs-one 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.