How many binary classifiers do one-vs-rest (OvR) and one-vs-one (OvO) need for K=10 classes? For K=4 classes A,B,C,D, suppose the OvO classifiers say A beats B, A beats C, D beats A, B beats C, D beats B and D beats C. What does OvO predict, and why can OvR be ambiguous?

Supervised learning, Multiclass strategies
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you can count the classifiers in each reduction and apply OvO majority voting.

Key idea

OvR trains K classifiers (class k against the rest). OvO trains (K2)=K(K−1)/2 classifiers, one for each pair, and predicts by majority vote.

Steps

  1. OvR: one classifier per class, so K=10 classifiers. Each sees all the data, with a heavily imbalanced positive class.
  2. OvO: one per pair, so (102)=45 classifiers. Each sees only the data of its two classes, so each is smaller and more balanced.
  3. For K=4 there are (42)=6 pairwise results. Count the votes: A has 2 (over B and C), B has 1 (over C), C has 0, and D has 3 (over A, B, C).
  4. The prediction is D, with the most votes. If two classes tied, we would use the sum of decision values to break the tie.
  5. OvR ambiguity: several classifiers can say 'positive' for a point, or none can. We then have to compare raw scores, which are not calibrated across classifiers.

Common mistakes

How long your answer should be

4–6 sentences.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: What do Gini impurity and entropy measure in a two-class decision-tree node, and what are their values when the positive-class proportion is p=0.5 (evenly mixed) and p=1 (pure)?
Next in Supervised learning: Why does a random forest have lower variance than a single deep decision tree?