0PricingLogin
Data Science Academy · Lesson

Class Weights and Thresholds

Tuning the model toward the minority.

Fix It Without Resampling

You can fight imbalance without touching the data at all. Two model-side levers help: class weights and the decision threshold.

What Class Weights Do

Class weights tell the model that mistakes on the rare class hurt more. It pays a bigger penalty for missing minority rows.

All lessons in this course

  1. Why Accuracy Lies on Imbalance
  2. Resampling: SMOTE and Undersampling
  3. Class Weights and Thresholds
  4. Pick Metrics for Rare Events
← Back to Data Science Academy