怎样对机器学习xgboost中数据集不平衡进行处理( 二 )


■网友
完全取决于你怎么定义target evaluation metrics了。xgboost manual的部分只是说调整了weight之后,预测的0-1的结果不再反应这个事件在此情况下出现的概率。
■网友
Balance the positive and negative weights, via scale_pos_weight请问这里的scale_pos_weight 设置方法是 按 positive/sample_size 的比例去设置吗?还是positive/negative的值呢?谢谢~


推荐阅读