repeated_kfold: Resamples for repeated K-fold cross-validation with...

Description Usage Arguments Details Value Examples

Description

Creates resamples for repeated K-fold cross-validation stratified by target variable.

Usage

1
repeated_kfold(nrep = 2L, nfolds = 5L, expr)

Arguments

nrep

Number of replications.

nfolds

Number of folds (min 2, max 20). Should match the value of nfolds specified in expr.

expr

Quoted expression for creating resamples.

Details

expr is a call of function cv_base, cv_split_temporal or other from the package.

Value

data.table with nrep*nfolds columns. Each column is an indicator variable with 1 corresponds to observations in validation dataset (stratified by target).

Examples

1
repeated_kfold(expr = quote(cv_base(as.data.table(iris), "Species")))

statist-bhfz/resampleR documentation built on Sept. 2, 2019, 8:14 p.m.