Bayesian Optimization#
BayesianOptimization is a global optimization method that uses the surrogate model
to approximate the objective function in a search space, see Bayesian Optimization for more details.
Acquisition function choice#
Acquisition function defines how the next candidate to explore is chosen.
The acquisition function can be customized by passing acquisition and its arguments via
acquisition_kwargs to run().
result = optimizer.run(trials=50, acquisition="UCB", acquisition_kwargs={"beta": 4.0})
The following sections describe which acquisition functions are available and which hyperparameters they have.
The default is acquisition="LogEI".
Log Expected Improvement "LogEI"#
Log Expected Improvement (LogEI) selects the next point by maximizing the logarithm of the expected improvement over the best objective value found so far:
This acquisition function has no hyperparameters to customize. For further details, see the BoTorch documentation on LogExpectedImprovement.
Upper Confidence Bound "UCB"#
Upper Confidence Bound (UCB) selects the next point by maximizing a weighted combination of the predicted objective value and its uncertainty:
The beta is a customizable hyperparameter, to adjust pass it via acquisition_kwargs:
Parameter |
Description |
Default |
Accepted values |
|---|---|---|---|
|
Trade-off between exploitation and exploration. |
|
float >= 0 |
For further details, see the BoTorch documentation on UpperConfidenceBound.
Additional information#
To learn more about acquisition functions, visit the BoTorch documentation page.