How to get the response variable from gbm model when train.fraction is <1 ?
Hello,
I am running gbm function (from GBM R package) and I am setting the option train.fraction to 0.7. I would like to get a vector with the response variable corresponding to this subset. I though this must be saved in one of the variables of the output gbm object but I haven't found it and I don't know if there is a way to get it. Does someone know?
Thanks
• 1,589 views
•
link
0 answers
No answers yet.
Log in to answer this question.
If possible provide minimum reproducible example. I would suggest you to explore R tidyModels. Probably function
broom::tidy()could solve your problem. See the example below where I used model created bylm()function and later get model details usingbroom::tidy()Created on 2020-03-25 by the reprex package (v0.3.0)