LightGBM和XGBoost使用scale_pos_weight处理不平衡数据源码分析
lightGBM和XGBoost都提供了 scale_pos_weight 参数来处理正样本和负样本的不平衡问题。scale_pos_weight = 负样本数 / 正样本数LightGBMsource// weight for labellabel_weights_[0] = 1.0f;label_weights_[1] = 1.0f;// if using unb...
原创
2018-06-22 15:55:10 ·
10390 阅读 ·
2 评论