This function complements mlr_tuners and mlr_terminators with functions in the spirit of mlr3::mlr_sugar.

tnr(.key, ...)

term(.key, ...)

Arguments

.key

:: character(1)
Key passed to the respective mlr3misc::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. See mlr3misc::dictionary_sugar_get() for more details.

Value

Tuner for tnr() and Terminator for term().

Examples

term("evals", n_evals = 10)
#> <TerminatorEvals> #> * Parameters: n_evals=10
tnr("random_search")
#> <TunerRandomSearch> #> * Parameters: batch_size=1 #> * Packages: - #> * Properties: dependencies