Skip to contents

Get cross-validation folds

Usage

getFolds(index, nb.folds = 5, seed = NULL)

Arguments

index

length of total set to select from, numeric vector of length 1

nb.folds

number of fold to divide, default is 5

seed

(optional) for reproducibility, set a seed.

Value

list of testing set indexes for each fold.

Author

Charlotte Brault