folds2foldvec: Build a Fold Vector from a Fold Object

View source: R/utils.R

folds2foldvecR Documentation

Build a Fold Vector from a Fold Object

Description

For V-fold type cross-validation. This takes a fold object and returns a fold vector (containing the validation set IDs) for use with other tools like cv.glmnet.

Usage

folds2foldvec(folds)

Arguments

folds

A fold object as produced by make_folds, from which a numeric vector of the validation set fold IDs are returned.

See Also

Other fold generation functions: fold_from_foldvec(), fold_funs, make_folds(), make_repeated_folds()


jeremyrcoyle/origami documentation built on Sept. 10, 2022, 4:28 p.m.