vimpute_search_space: The built-in tuning search space of a learner

View source: R/vimpute_tune_control.R

vimpute_search_spaceR Documentation

The built-in tuning search space of a learner

Description

Returns the search space and default evaluation budget that vimpute(tune = TRUE) uses for one of its built-in learners. The bounds and budgets scale with the task size. Useful as the starting point for a search_space hook in register_vimpute_method() and for inspecting what the tuner explores.

Usage

vimpute_search_space(learner_id, task)

Arguments

learner_id

Single string: an mlr3 learner id used by vimpute's built-in methods, e.g. "regr.ranger", "classif.xgboost", "regr.cv_glmnet", "regr.lm_rob", "regr.gam_imp".

task

An mlr3 task (its number of rows scales the bounds and the budget).

Value

A list with elements space (a paradox::ParamSet, or NULL if the learner has no built-in space) and n_evals (the default evaluation budget).

See Also

vimpute_tune_control(), register_vimpute_method()

Examples

## Not run: 
task <- mlr3::TaskRegr$new("t", backend = data.frame(y = 1:20, x = 1:20),
                           target = "y")
vimpute_search_space("regr.ranger", task)

## End(Not run)

VIM documentation built on Sept. 2, 2026, 5:07 p.m.