this function creates stratified folds in binary and multiclass classification
class_folds(folds, RESP, shuffle = FALSE)
folds | is an integer specifying the number of folds |
---|---|
RESP | is the response variable |
shuffle | is a boolean specifying if the vector of indices should be shuffled or not |
a list of indices