更新时间:2023-12-01 14:43:04
为了使用 xgboost sklearn API 做到这一点,您需要升级到 xgboost 0.81.作为此 PR 的一部分,他们修复了设置通过 kwargs 控制的参数的能力:https://github.com/dmlc/xgboost/pull/3791
In order to do this using the xgboost sklearn API, you need to upgrade to xgboost 0.81. They fixed the ability to set parameters controlled via kwargs as part of this PR: https://github.com/dmlc/xgboost/pull/3791