Minimize a black-box loss over a parameter box with a scalar GP. More...
#include <Eigen/Dense>#include <algorithm>#include <cmath>#include <limits>#include <optional>#include <stdexcept>#include <utility>#include <vector>#include "gpr/bo/ExpectedImprovement.h"#include "gpr/bo/ScalarGaussianProcess.h"#include "gpr/bo/ScalarHyperparameterFit.h"#include "gpr/bo/ScalarSurrogate.h"#include "gpr/bo/StationaryKernel.h"Go to the source code of this file.
Classes | |
| struct | gpr::bo::ParameterBound |
| One axis of the search box. More... | |
| struct | gpr::bo::ParameterSearchConfig |
| struct | gpr::bo::ParameterObservation |
| One evaluated parameter vector, as ParameterSearch::observe() takes it. More... | |
| struct | gpr::bo::ParameterSearchResult |
| class | gpr::bo::ParameterSearch |
| Ask-and-tell minimization of a noisy loss over a parameter box. More... | |
Namespaces | |
| namespace | gpr |
| Gaussian-process regression, kernels, priors, and the searches that run on the surrogate. | |
| namespace | gpr::bo |
Enumerations | |
| enum class | gpr::bo::ParameterAcquisition { gpr::bo::ExpectedImprovement , gpr::bo::LowerConfidenceBound } |
Functions | |
| bool | gpr::bo::isDiscrete (const ParameterBound &bound) |
| True for an integer axis or an axis with allowed values. | |
| void | gpr::bo::validateBound (const ParameterBound &bound) |
| Throw std::invalid_argument unless the axis is well formed. | |
| double | gpr::bo::unitToParameter (double unit, const ParameterBound &bound) |
| Map a unit-cube coordinate to the parameter of its axis. | |
| double | gpr::bo::parameterToUnit (double parameter, const ParameterBound &bound) |
| Unit-cube coordinate of a parameter, the inverse of unitToParameter(). | |
| double | gpr::bo::snapUnit (double unit, const ParameterBound &bound) |
| The unit-cube coordinate of the lattice point a coordinate rounds to. A continuous axis returns the clamped coordinate. | |
| template<typename Objective, typename Kernel> | |
| ParameterSearchResult | gpr::bo::minimize (Objective &&objective, const std::vector< ParameterBound > &bounds, const ParameterSearchConfig &config, const Kernel &kernel) |
| template<typename Objective> | |
| ParameterSearchResult | gpr::bo::minimize (Objective &&objective, const std::vector< ParameterBound > &bounds, const ParameterSearchConfig &config) |
Minimize a black-box loss over a parameter box with a scalar GP.
Coordinates live in the unit cube. A logarithmic bound is uniform in log(parameter). An integer axis and an axis with a list of allowed values are rounded to their lattice before the loss is called and inside the acquisition, and a lattice point is evaluated once. Expected improvement is the minimizer form. The lower confidence bound is mu - kappa * sigma on the standardized loss. When the initial losses cover more than two and a half decades, a Nelder-Mead simplex polishes the best point: one length scale cannot resolve a thin curved valley in that range.
minimize() owns the loop and calls the loss itself. ParameterSearch is the ask-and-tell form for a caller that runs the evaluations: observe() records results and propose() returns the next batch of parameter vectors.
Definition in file ParameterSearch.h.