How do you handle class imbalance when training neural networks with mini-batches?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how to train a neural network on imbalanced classes when each gradient step sees only a small mini-batch. Tests knowledge of balanced sampling, loss weighting, focal loss and logit adjustment, plus calibration, threshold tuning and metric choice after training.