Skill 1.3.5
Resolve class imbalance in numeric, text, and image datasets
Key Concepts
For numeric data, use random oversampling, undersampling, SMOTE (synthetic minority examples interpolated between neighbours) or class weights such as XGBoost scale_pos_weight. For text, paraphrase or back-translate minority examples or generate synthetic ones with an FM.
For images, augment the minority class with flips, rotations, crops and colour changes. Always resample only the training split and evaluate with precision, recall, F1 or PR AUC.