create_repeated_cv_fold: create_repeated_cv_fold

View source: R/create_repeated_cv_fold.R

create_repeated_cv_foldR Documentation

create_repeated_cv_fold

Description

create_repeated_cv_fold

Usage

create_repeated_cv_fold(idx, labels = NULL, pct_test, n_rep, n_fold,
  grid)

Arguments

idx

indecies

labels

class labels. default is 'NULL'. If provided then there will be a balanced representation of the classes in train and test.

pct_test

percentage of indecies for test

n_rep

number of CV repeats

n_fold

number of CV folds

grid

search grid

Value

a expanded list

Examples

## Not run: 
create_repeated_cv_fold(idx = 1:100,
                        labels <- sample(c(1,2,3), size = 100, replace = TRUE),
                        pct_test = 0.2,
                        n_rep = 10,
                        n_fold = 5,
                        grid = expand.grid(mtry = 1:2, ntree = 2:5))


## End(Not run)

anderslaunerbaek/homemade documentation built on Sept. 18, 2022, 6:47 a.m.