folds {yager} | R Documentation |
Generate a list of index for the n-fold cross-validation
Description
The function folds
generates a list of index for the n-fold cross-validation
Usage
folds(idx, n, seed = 1)
Arguments
idx |
A vector of index list |
n |
The number of n folds |
seed |
The seed value to generate random n-fold index |
Value
A list of n-fold index
Examples
folds(seq(10), n = 3, seed = 2020)
[Package yager version 0.1.1 Index]