This function complements mlr_optimizers with functions in the spirit
of mlr_sugar
from mlr3.
Arguments
- .key
(
character(1)
)
Key passed to the respective dictionary to retrieve the object.- ...
(named
list()
)
Named arguments passed to the constructor, to be set as parameters in the paradox::ParamSet, or to be set as public field. Seemlr3misc::dictionary_sugar_get()
for more details.- .keys
(
character()
)
Keys passed to the respective dictionary to retrieve multiple objects.
Examples
opt("random_search", batch_size = 10)
#>
#> ── <OptimizerBatchRandomSearch> - Random Search ────────────────────────────────
#> • Parameters: batch_size=10
#> • Parameter classes: <ParamLgl>, <ParamInt>, <ParamDbl>, and <ParamFct>
#> • Properties: dependencies, single-crit, and multi-crit
#> • Packages: bbotk