How does training with a class-weighted loss affect the calibration of the model's predicted probabilities?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how weighting classes in the cross-entropy loss changes the probabilities a classifier outputs. Tests deriving the weighted optimum, the link to prior shift and resampling, which metrics are unaffected, and how to correct the bias with prior correction or post-hoc calibration.