More Than Two Classes

Some problems have more than two possible answers. We need a way to compare the evidence for each category and decide how the resulting scores become a prediction.

19 sections · 15 questions · 4 coding challenges

1 / 19

What Changes When There Are More Than Two Answers?

BOTIE

Recognising whether an image contains a digit is a yes-or-no question. Identifying which digit it contains is a different task. A binary classifier cannot directly return one of several categories, so we need a rule for organising the larger decision.

Researchers developed several ways to turn multiclass problems into collections of binary problems. Dietterich and Bakiri's 1995 work explored error-correcting output codes, giving classes different answer patterns across binary classifiers. It asked whether the combined pattern could tolerate some individual mistakes.

Simpler decompositions include one classifier per class or one for each pair of classes. A model can also learn all class scores together and normalise them into a probability distribution. These arrangements use different evidence and can disagree. We will make the combination rule explicit instead of assuming that several binary outputs automatically form one coherent multiclass prediction.

Sources for this history