Evaluate a classifier

Keep a steady rhythm through each period. · 130 words

A classifier assigns a label to each input. Imagine ten messages, nine ordinary and one urgent. Calling every message ordinary gives nine correct labels out of ten. Yet the classifier misses the only urgent message. Count errors for each class when a rare case has an important consequence.

Arrange outcomes in a table with the true label on one side and the predicted label across the top. An urgent message sent to the ordinary inbox occupies a different cell from an ordinary message that triggers an alarm. Count the first kind if missed emergencies are costly. Count the second if staff lose time on false alarms. Two classifiers with equal accuracy can distribute their errors very differently. Report both kinds of error before choosing the model for a specific workflow.

Check your recall

How many urgent messages did the classifier detect?

Check your answer

Zero out of one, despite an overall accuracy of ninety percent.

Sources and credits

Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.