[英]Partial dependence plot from an xgboost model in R
Is there an already existing function to get a partial dependence plot from an xgboost model in R? 是否存在已经存在的函数来从R中的xgboost模型获得部分依赖图? I saw examples of using mlr
package, but it seems to require an mlr
-specific wrapper class. 我看到了使用mlr
包的示例,但它似乎需要一个mlr
特定的包装类。 I am a little unclear if there is a way to convert an xgboost
model into that class. 我有点不清楚是否有办法将xgboost
模型转换为该类。
I have been working on an R package, pdp
, for constructing partial dependence plots-- https://github.com/bgreenwell/pdp . 我已经工作的R包, pdp
,用于构造部分依赖plots-- https://github.com/bgreenwell/pdp 。 I was able to get it to work with XGBoost models, but it is still experimental. 我能够使用XGBoost模型,但它仍然是实验性的。 There is a vignette/manuscript in progress in the manuscript folder that may help. 手稿文件夹中有一个正在进行的小插图/手稿可能会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.