Skip to contents

This function allows to construct an AcqOptimizer in the spirit of mlr_sugar from mlr3.

Usage

acqo(optimizer, terminator, acq_function = NULL, callbacks = NULL, ...)

Arguments

optimizer

(bbotk::Optimizer)
bbotk::Optimizer that is to be used.

terminator

(bbotk::Terminator)
bbotk::Terminator that is to be used.

acq_function

(NULL | AcqFunction)
AcqFunction that is to be used. Can also be NULL.

callbacks

(NULL | list of mlr3misc::Callback) Callbacks used during acquisition function optimization.

...

(named list())
Named arguments passed to the constructor, to be set as parameters in the paradox::ParamSet.

Value

AcqOptimizer

Examples

library(bbotk)
acqo(opt("random_search"), trm("evals"), catch_errors = FALSE)
#> <AcqOptimizer>: (OptimizerBatchRandomSearch | TerminatorEvals)
#> * Parameters: n_candidates=1, logging_level=warn, warmstart=FALSE,
#>   skip_already_evaluated=TRUE, catch_errors=FALSE