标签: python machine-learning scikit-learn xgboost
我想问 XGboost python中的“ sample_weight”类似于随机森林中的“ class_weight”,对吧?
如果我计算y的“ class_weight”数组,然后当我生成模型时,将分配给“ sample_weight”。
谢谢。