Description Usage Arguments Value
View source: R/utility_funcs.r
Partition data into (random) folds for cross-validation.
1 | partition_data(n, k, random = FALSE)
|
n |
number of rows |
k |
number of folds |
random |
flag to choose whether to randomly select |
ind vector of integers denoting the OOS fold each row belongs to Returns vector of indices denoting the OOS index, i_e. for rows with I_i=1, those are OOS for i=1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.