balanced.folds: Get balanced folds where each fold has close to overall class...

Description Usage Arguments Value

Description

Get balanced folds where each fold has close to overall class ratio. This only works for non-numeric inputs.

Usage

1
balanced.folds(y, nfolds = 10)

Arguments

y

Vector of classes; should be a factor, logical, or character

nfolds

Number of folds. -1 means leave-one-out

Value

Numeric vector of fold indices, one for each element of y


knights-lab/MWAS documentation built on May 20, 2019, 12:52 p.m.