Random Search Acquisition Function Optimizer
Source:R/AcqOptimizerRandomSearch.R
AcqOptimizerRandomSearch.RdRandom search acquisition function optimizer.
By default, it samples 100 * D^2 random points in the search space, where D is the dimension of the search space.
The point with the highest acquisition value is returned.
Parameters
n_evalsinteger(1)
Number of random points to sample. Default is100 * D^2, whereDis the dimension of the search space.skip_already_evaluatedlogical(1)
Should the proposed candidate be rejected if it was already evaluated on the actual bbotk::OptimInstance? IfTRUEand the candidate was already evaluated, an error is raised so that theloop_functioncan propose a randomly sampled point instead. Default isTRUE.
Super class
AcqOptimizer -> AcqOptimizerRandomSearch
Active bindings
print_id(
character)
Id used when printing.label(
character(1))
Label for this object. Can be used in tables, plot and text output instead of the ID.man(
character(1))
String in the format[pkg]::[topic]pointing to a manual page for this object.
Methods
Inherited methods
AcqOptimizerRandomSearch$new()
Creates a new instance of this R6 class.
Usage
AcqOptimizerRandomSearch$new(acq_function = NULL)Arguments
acq_function(
NULL| AcqFunction).
AcqOptimizerRandomSearch$optimize()
Optimize the acquisition function.
Returns
data.table::data.table() with 1 row per candidate.
Examples
acqo("random_search")
#> <AcqOptimizerRandomSearch>: (OptimizerRandomSearch)
#> * Parameters: skip_already_evaluated=TRUE, catch_errors=TRUE