
Assign Data to One of n_folds Randomly and Produce Training/Validation Data Lists
Source:R/cv_schemas.R
cv_random_schema.Rd
Each row in the data are assigned to one of `1:n_folds` at random. Then for each of `i` in `1:n_folds`, the `training_data[[i]]` is comprised of the data with `sl_fold != i`, i.e., capturing roughly `(n-folds-1)/n_folds` proportion of the data. The validation data is a list of dataframes, each comprising of roughly `1/n_folds` proportion of the data.
Value
A list of two lists ($training_data
and $validation_data
)
which are each lists of length n_folds
. In each of those entries is a
data.frame that contains the nth training or validation fold of the data.