balanced.cv.fold: Split a dataset for Cross Validation taking into account class balance
Description
Split a dataset for Cross Validation taking into account class balance
Usage
balanced.cv.fold(y, num.cv = 10)
Arguments
y
the class labels of each sample of the dataset
num.cv
number of cross validation required
Value
a factor of num.cv levels that assign to each sample a test fold