dot-list_to_ResamplerConfig: Convert a list to a ResamplerConfig object

.list_to_ResamplerConfigR Documentation

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)

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

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.

seed

Integer or NULL: random seed.

Value

A ResamplerConfig object of the appropriate subtype.

Author(s)

EDG

Examples

.list_to_ResamplerConfig(list(type = "KFold", n_resamples = 5L))

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.