create_folds: Creates folds stratified by target variable.

Description Usage Arguments Value

View source: R/k_fold.R

Description

Creates folds stratified by target variable.

Usage

1
create_folds(y, nfolds = 5L, probs = seq(0, 1, length.out = 11))

Arguments

y

Target variable vector.

nfolds

Number of folds.

probs

Numeric vector of probabilities with values in [0, 1] range.

Value

Folds numbers vector.


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