This function complements mlr_test_functions 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. Seemlr3misc::dictionary_sugar_get()for more details.- .keys
(
character())
Keys passed to the respective dictionary to retrieve multiple objects.
Value
ObjectiveRFun for
otfun().list of ObjectiveRFun for
otfuns().
Examples
obj = otfun("branin")
obj$eval(list(x1 = 1, x2 = 2))
#> $y
#> [1] 21.62764
#>