How does the scale_pos_weight hyperparameter modify the boosting objective for imbalanced datasets?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how the scale_pos_weight setting in gradient boosting changes the training objective on imbalanced binary data. It tests how per-class weights flow into gradients, hessians, split gains and leaf values, and how class weighting affects probability calibration.