Trying to run a classification model.
Simple example per your code demo here gbm3::printExamples
data( iris )
kMod <- gbm( Species ~ . , data=iris , distribution = "gaussian", n.tree=1000, shrinkage=.1,
cv.folds=5, train.fraction=.9)
results in
"Error: Not compatible with requested type: [type=character; target=double]."
checked the Species variable, and it is a factor. Not sure how to proceed, seems like an error.