trControlCheck: Check that the trainControl object supplied by the user is...

Description Usage Arguments

View source: R/caretList.R

Description

This function checks the user-supplied trainControl object and makes sure it has all the required fields. If the resampling indexes are missing, it adds them to the model. If savePredictions=FALSE or "none", this function sets it to "final".

Usage

1

Arguments

x

a trainControl object.

y

the target for the model. Used to determine resampling indexes.


zachmayer/caretEnsemble documentation built on Nov. 7, 2017, 5:01 a.m.