Setup Resampler
Usage
setup_Resampler(
n_resamples = 10L,
type = c("KFold", "StratSub", "StratBoot", "Bootstrap", "LOOCV"),
stratify_var = NULL,
train_p = 0.75,
strat_n_bins = 4L,
target_length = NULL,
id_strat = NULL,
seed = NULL,
verbosity = 1L
)
Arguments
- n_resamples
Integer: Number of resamples to make.
- type
Character: Type of resampler: "KFold", "StratSub", "StratBoot", "Bootstrap", "LOOCV"
- stratify_var
Character: Variable to stratify by.
- train_p
Float: Training set percentage.
- strat_n_bins
Integer: Number of bins to stratify by.
- target_length
Integer: Target length for stratified bootstraps.
- id_strat
Integer: Vector of indices to stratify by. These may be, for example, case IDs if your dataset contains repeated measurements. By specifying this vector, you can ensure that each case can only be present in the training or test set, but not both.
- seed
Integer: Random seed.
- verbosity
Integer: Verbosity level.