Hi, I have an imbalanced dataset and was trying to use scale_pos_weight. I wanted to ask does it penalise only the misclassified observations or all the observation of positive class. Since it multiplies the gradient and hessian with the parameter value, won’t it increase the gradient and hessian for correctly classified labels as well.
Thanks!!