title: What is the mechanism of using param 'scale_pos_weight' in xgboost?
body: <p>My dataset has 90% negative samples and 10% positive samples which is very imbalanced. I try to use the parameter of scale_pos_weight and set it as 9. What is the mechanism of this param do. I am curious about what it actually means: does it mean repeat the positive samples 9 times? Or everytime pull out 1/9 samples of negative samples and train the model in many times. besides, if I have a dataset whose negative samples just a little more than the positive ones, should I need to specify the parameter again?</p>