Resampling: SMOTE and Undersampling
Rebalancing the training set.
Rebalance the Training Set
One way to help a model see the rare class is to resample: change how many examples of each class it trains on.
Two Directions to Balance
You can add more of the minority (oversample) or trim the majority (undersample). Both aim to even out the class counts.
All lessons in this course
- Why Accuracy Lies on Imbalance
- Resampling: SMOTE and Undersampling
- Class Weights and Thresholds
- Pick Metrics for Rare Events