View source: R/31_pre_processing_functions.R
index_spliter | R Documentation |
Randomly splits a given vector of indices into approximately equal-sized folds.
index_spliter(array, n_folds = 5)
array |
A vector of indices (e.g., |
n_folds |
Integer. Number of folds. Default is 5. |
A list of length n_folds
, each containing a subset of the shuffled indices.
index_spliter(1:10, n_folds = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.