Is there an already existing function to get a partial dependence plot from an xgboost model in R? I saw examples of using mlr
package, but it seems to require an mlr
-specific wrapper class. I am a little unclear if there is a way to convert an xgboost
model into that class.
I have been working on an R package, pdp
, for constructing partial dependence plots-- https://github.com/bgreenwell/pdp . I was able to get it to work with XGBoost models, but it is still experimental. There is a vignette/manuscript in progress in the manuscript folder that may help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.