subset_folds takes a origami style folds list, and returns a list of folds applicable to a subset, by subsetting the training and validation index vectors

subset_folds(folds, subset)

Arguments

folds

an origami style folds list

subset

an index vector to be used to subset the data