This function prepares the cross-validation by splitting the data into num.folds
training and test folds for num.resample
times.
data.splitter(siamcat, num.folds = 2, num.resample = 1, stratify = TRUE, inseparable = NULL, verbose = 1)
siamcat | object of class siamcat-class |
---|---|
num.folds | number of cross-validation folds (needs to be |
num.resample | resampling rounds (values |
stratify | boolean, should the splits be stratified s. t. an equal proportion of classes are present in each fold?, defaults to |
inseparable | column index or column name of metadata variable, defaults to |
verbose | control output: |
object of class siamcat-class