Skip to content
Prev 381573 / 398502 Next

Train and testing in caret package

Hello to all. I am new to R language, just read few tutorials.

I have a question, we use trainControl and train function for k fold cross
validation and we don't need to predict the data separately using predict
function for test data.

But how when we have a separate test set? How can we use the trainControl
function, what to write in the method instead of repeated cv, how to
predict data on test set?
Thanks for your understanding