Choosing Threshold and Metric
Optimize for the class you care about.
The Hidden Threshold
Classifiers output a probability, then a threshold turns it into a label. The default 0.5 is rarely best for rare classes.
Move the Line
Lowering the threshold flags more items as the rare class, catching more true cases at the cost of extra false alarms.
All lessons in this course
- Why Rare Classes Get Ignored
- Resampling and Class Weights
- Choosing Threshold and Metric
- End-to-End Imbalanced Pipeline