createFolds: Create folds for k-fold validation

Description Usage Arguments Author(s)

Description

Used to create balanced folds with respect to y input for k-fold validation.

Usage

1
.createFolds(y, k = 10, list = TRUE, returnTrain = FALSE)

Arguments

y

split sample by balancing y

k

number of folds

list

logical whether to return folds in a list

returnTrain

logical whether to return training indices (T) or the test samples (F)

Author(s)

Caret Package


neuroconductor-releases/LESYMAP documentation built on Dec. 10, 2019, 12:14 a.m.