View source: R/vimpute_tune_control.R
| vimpute_tune_control | R Documentation |
vimpute()Bundles the tuning controls that vimpute(tune = TRUE) previously
hard-coded: the evaluation budget, the cross-validation folds of the
tuning resampling, the mlr3tuning tuner and its batch size. Pass the
result to vimpute(tune_control = ). With m > 1 the control applies to
the single tuning run (run 1), whose parameters all m imputations share.
vimpute_tune_control(
budget = NULL,
folds = NULL,
tuner = "random_search",
batch_size = 1L
)
budget |
|
folds |
|
tuner |
Single string: an mlr3tuning tuner id, e.g.
|
batch_size |
Single positive integer: configurations evaluated per
tuner batch. The default |
Nested resampling is intentionally not offered: the goal of tuning inside
an imputation loop is good imputations, not an unbiased estimate of the
learner's generalisation error, and the tuned-vs-default comparison that
vimpute() runs on a fresh resampling already guards against tuning that
overfits the folds.
An object of class vimpute_tune_control.
vimpute(), vimpute_search_space()
## Not run:
data(sleep)
res <- vimpute(sleep[, c("Sleep", "Dream", "Span")], method = "ranger",
tune = TRUE, sequential = FALSE,
tune_control = vimpute_tune_control(budget = 10, folds = 3))
attr(res, "tuning_log")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.