When training classification models on imbalanced datasets, it’s common to use class weights to prevent the model from favoring the majority class. But it got me thinking:
If class weights are influencing the optimization process during training, should validation metrics also reflect those same weights? Or should validation always represent the natural distribution of the real-world data?
I can see arguments both ways:
- Weighted validation may better reflect the objective the model was optimized for.
- Unweighted validation may provide a more realistic view of production performance.
- In highly imbalanced scenarios, the choice can significantly change how model quality is perceived.
How do you approach this in practice? Do you validate against the original distribution, apply sample weights during validation, or track both perspectives?
Curious to hear how others balance model fairness, business objectives, and evaluation methodology when dealing with class imbalance.
