I follow the param tuning skilss and set scale_pos_weight = count(negative examples)/count(Positive examples).
But training time of each loop is slower than before.
And I check the original code but did not find the proper reasons, which seems to only multiple a weight on a positive label weight.
if (label == 1.0f) {
w *= scale_pos_weight;
}