Skip to content
Middle+0 views

And what if we consider the dog to be the positive class?

Practice

Asked at

AI answer

The positive class is the event chosen by convention that the model is meant to detect. If the positive class is dog, then TP means a dog was predicted as a dog, FP means a dog was predicted but the actual class was different, FN means a dog was missed, and TN means another class was correctly identified.

In this case, precision answers the question “What proportion of the predicted dogs are actually dogs?”, while recall answers “What proportion of all dogs did we find?”. When the positive class changes, these metrics are interpreted for the new class; accuracy does not change when classes are simply relabeled. It is important to align the positive-class label with the event that matters for the task and set the classification threshold accordingly.