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
- Why Accuracy Lies on Imbalance
- Resampling: SMOTE and Undersampling
- Class Weights and Thresholds
- Pick Metrics for Rare Events