0PricingLogin
NLP Academy · Lesson

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

  1. Why Rare Classes Get Ignored
  2. Resampling and Class Weights
  3. Choosing Threshold and Metric
  4. End-to-End Imbalanced Pipeline
← Back to NLP Academy