Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trControlCheck

Check that the trainControl object supplied by the user is valid and has defined re-sampling indexes.


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

trControlCheck(x, y)

Arguments

x

a trainControl object.

y

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


caretEnsemble

Ensembles of Caret Models

v2.0.1
MIT + file LICENSE
Authors
Zachary A. Deane-Mayer [aut, cre], Jared E. Knowles [aut]
Initial release
2019-12-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.