trainControl(
method = "boot",
number = ifelse(method == "cv", 10, 25),
verboseIter = TRUE,
returnData = TRUE,
p = 0.5,
selectionFunction = "best",
index = NULL)
boot
, cv
,
LOOCV
, LGOCV
(for repeated training/test splits), or
oob
(only for random forest, bagged trees, bagged earth, bagged flexible discriminant analysis,best
for details and other options.