Skip to contents

This function complements mlr_test_functions with functions in the spirit of mlr_sugar from mlr3.

Usage

otfun(.key, ...)

otfuns(.keys, ...)

Arguments

.key

(character(1))
Key passed to the respective dictionary to retrieve the object.

...

(named list())
Named arguments passed to the constructor. See mlr3misc::dictionary_sugar_get() for more details.

.keys

(character())
Keys passed to the respective dictionary to retrieve multiple objects.

Value

Examples

obj = otfun("branin")
obj$eval(list(x1 = 1, x2 = 2))
#> $y
#> [1] 21.62764
#>