Log marginal likelihood of the scalar GP and its maximization. More...
#include <Eigen/Dense>#include <cmath>#include <cstdint>#include <limits>#include <stdexcept>#include <vector>#include "gpr/bo/StationaryKernel.h"#include "gpr/linalg/Backend.h"Go to the source code of this file.
Classes | |
| struct | gpr::bo::ScalarHyperparameters |
| Hyperparameters of a stationary scalar GP. More... | |
| struct | gpr::bo::ScalarLikelihoodData |
| Observations the marginal likelihood is evaluated on. More... | |
| struct | gpr::bo::ScalarFitBounds |
| Box of the fit in natural units. An empty vector or a non-positive scalar selects the default of defaultScalarFitBounds(). More... | |
| struct | gpr::bo::ScalarFitConfig |
| Settings of fitScalarHyperparameters(). More... | |
| struct | gpr::bo::ScalarFitResult |
| Result of fitScalarHyperparameters(). More... | |
Namespaces | |
| namespace | gpr |
| Gaussian-process regression, kernels, priors, and the searches that run on the surrogate. | |
| namespace | gpr::bo |
Functions | |
| Eigen::Index | gpr::bo::scalarParameterCount (const ScalarLikelihoodData &data) |
| Number of fitted parameters: the length scales, the signal variance and, without per-row variances, the noise variance. | |
| double | gpr::bo::scalarLogMarginalLikelihood (const ScalarLikelihoodData &data, const ScalarHyperparameters &hyper, Eigen::VectorXd *gradient=nullptr) |
| Log marginal likelihood log p(y | X, theta) and its gradient. | |
| ScalarFitBounds | gpr::bo::defaultScalarFitBounds (const ScalarLikelihoodData &data) |
| Default box of the fit, from the spread of the observations. | |
| ScalarFitResult | gpr::bo::fitScalarHyperparameters (const ScalarLikelihoodData &data, const ScalarHyperparameters &initial, const ScalarFitConfig &config={}) |
| Maximize the log marginal likelihood over the hyperparameters. | |
Log marginal likelihood of the scalar GP and its maximization.
The hyperparameters are one length scale per axis, the signal variance and, when the rows carry no variance of their own, one noise variance. The objective and its gradient follow Rasmussen and Williams (2006), section 5.4.1, equations (5.8) and (5.9). With a mean basis the coefficients are integrated out under a vague prior, section 2.7, equation (2.45).
Definition in file ScalarHyperparameterFit.h.