#include <gpr/ml/FactorizedLikelihood.h>
Public Member Functions | |
| void | setEigendecomposition (const Eigen::VectorXd &eigenvalues, const EigenMatrix &eigenvectors, const Eigen::VectorXd &targets) |
| Cache the eigendecomposition of K_XX for repeated noise sweeps. | |
| double | evaluateGP (double noise_variance) const |
| GP negative log marginal likelihood at given noise level. | |
| double | evaluateTP (double noise_variance, double a, double b) const |
| TP negative log marginal likelihood at given noise level. | |
| double | analyticalPrefactor (double noise_variance) const |
| Analytically optimal GP prefactor (signal variance). | |
| double | tpPrefactor (double noise_variance, double a, double b) const |
| TP prefactor from inverse-gamma hyperprior. | |
| Eigen::Index | dataSize () const |
Definition at line 29 of file FactorizedLikelihood.h.
| double gpr::FactorizedLikelihood::analyticalPrefactor | ( | double | noise_variance | ) | const |
Analytically optimal GP prefactor (signal variance).
| noise_variance | sigma_n^2 |
Definition at line 74 of file FactorizedLikelihood.cpp.
|
inline |
Definition at line 82 of file FactorizedLikelihood.h.
| double gpr::FactorizedLikelihood::evaluateGP | ( | double | noise_variance | ) | const |
GP negative log marginal likelihood at given noise level.
Uses the analytical prefactor: prefactor = mean(UTY^2 / D_n).
| noise_variance | sigma_n^2 in linear space |
Definition at line 33 of file FactorizedLikelihood.cpp.
| double gpr::FactorizedLikelihood::evaluateTP | ( | double | noise_variance, |
| double | a, | ||
| double | b ) const |
TP negative log marginal likelihood at given noise level.
Uses the inverse-gamma hyperprior on the signal variance.
| noise_variance | sigma_n^2 in linear space |
| a | inverse-gamma shape parameter |
| b | inverse-gamma scale parameter |
Definition at line 57 of file FactorizedLikelihood.cpp.
| void gpr::FactorizedLikelihood::setEigendecomposition | ( | const Eigen::VectorXd & | eigenvalues, |
| const EigenMatrix & | eigenvectors, | ||
| const Eigen::VectorXd & | targets ) |
Cache the eigendecomposition of K_XX for repeated noise sweeps.
| eigenvalues | D from eigh(K_XX), shape (n,) |
| eigenvectors | U from eigh(K_XX), shape (n, n) |
| targets | y vector, shape (n,) |
Definition at line 11 of file FactorizedLikelihood.cpp.
| double gpr::FactorizedLikelihood::tpPrefactor | ( | double | noise_variance, |
| double | a, | ||
| double | b ) const |
TP prefactor from inverse-gamma hyperprior.
| noise_variance | sigma_n^2 |
| a | shape parameter |
| b | scale parameter |
Definition at line 80 of file FactorizedLikelihood.cpp.