且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 ScikitLearn 在 XGBoost 中强制执行单调约束?

更新时间: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