create_caret_folds: Create folds of test sets to use in caret.

View source: R/functions.R

create_caret_foldsR Documentation

Create folds of test sets to use in caret.

Description

Transform list of sets of folds to list which may be passed to caret train function.

Usage

create_caret_folds(folds_list)

Arguments

folds_list

list of sets of folds, each element is a vector of folds numbers.

Value

list of training set object for each fold in format which suit the requirements of caret train function.

Examples

folds_list <- lapply(1:10, function(i) sample.int(5, 100, TRUE))
caret_folds_list <- create_caret_folds(folds_list)

DrrDom/pfpp documentation built on April 17, 2024, 10:24 a.m.