有没有办法为xgboost分类器设置不同的类权重?例如,在sklearn RandomForestClassifier中,这是通过“ class_weight”参数完成的。
scikit-learn xgboost
scikit-learn ×1
xgboost ×1