XGboost python中的sample_weight

时间:2020-02-12 05:22:42

标签: python machine-learning scikit-learn xgboost

我想问 XGboost python中的“ sample_weight”类似于随机森林中的“ class_weight”,对吧?

如果我计算y的“ class_weight”数组,然后当我生成模型时,将分配给“ sample_weight”。

谢谢。

0 个答案:

没有答案