I'm trying to use R
's gbm
regression model.
I want to compute the coefficient of determination (R squared) between the cross validation predicted response values and the true response values. However, the cv.fitted
values of the gbm.object
only provides the predicted response values for 1-train.fraction
. So in order to get what I want I need to find which of the observations correspond to the cv.fitted
values.
Any idea how to get that information?