Entering edit mode
4.7 years ago
carina2817
▴
20
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
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)