Description Usage Arguments Details Value Examples
Sampling for k-fold validation
1 | kfoldind(ndata, k = 5, repetitions = 3)
|
ndata |
the number of rows in the data. If a vector is given, will use the length. If a matrix or a dataframe is given, will use number of rows. |
k |
number of folds, positive integer. |
repetitions |
number of repetitions of the k-fold procedure, positive integer. |
Setting k=1 is understood as no folding: returned training and validation subsets will be both the full set.
a list of k*repetitions
components, each of which is a list of two vectors: indices of the training subset and of the validation subset.
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.