And what if we consider the dog to be the positive class?
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.
Also asked at СБЕР
Similar questions
- Have you ever worked with binary classification? Have you encountered class imbalance in such tasks, and what can be done about it?
- A binary classification task is being solved where the positive class makes up 5% of the data, and the model’s Accuracy is 95%. What can you say about the quality of this model?
- Could you tell me whether you have any experience with more traditional machine learning?
- What exactly were you recognizing in the segmentation task—were you segmenting images or what?
- How did you fine-tune BERT and manipulate the data to balance the rare classes?