Model Pipeline - Imbalanced class handling (SMOTE, class weights)
This pipeline shows how to handle imbalanced classes in a dataset using SMOTE to create synthetic samples and class weights to help the model learn better from minority classes.
This pipeline shows how to handle imbalanced classes in a dataset using SMOTE to create synthetic samples and class weights to help the model learn better from minority classes.
Loss
0.7 |*
0.6 | *
0.5 | *
0.4 | *
0.3 | *
0.2 | *
0.1 |
+--------
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.70 | Model starts learning, loss high, accuracy moderate |
| 2 | 0.48 | 0.80 | Loss decreases, accuracy improves |
| 3 | 0.35 | 0.87 | Model learns minority class better |
| 4 | 0.28 | 0.90 | Loss continues to decrease, accuracy rises |
| 5 | 0.22 | 0.92 | Training converges with good balance |