.list_to_ResamplerConfig: Convert a list to a ResamplerConfig object
Description
Internal function used by rtemis.server and SuperConfig deserialization
to reconstruct a ResamplerConfig object from a named list. Not intended
for direct use by end users.
Usage
.list_to_ResamplerConfig(x)
Value
A ResamplerConfig object of the appropriate subtype.
Arguments
x
Named list with the following elements:
type
Character: resampler type -- one of "KFold",
"StratSub", "StratBoot", "Bootstrap", "LOOCV". "Custom" has
no wire form and is rejected here.
n_resamples
Integer: number of resamples (not used for "LOOCV").
train_p
Numeric: training proportion (used by "StratSub" and
"StratBoot").
stratify_var
Character or NULL: stratification variable name.
strat_n_bins
Integer: number of bins for stratification.
target_length
Integer or NULL: target resample length
("StratBoot" only).
id_strat
Character or NULL: name of the grouping-ID column.