Gaussian noise with variance. More...
#include <gpr/observation_models/LikGaussian.h>
Public Member Functions | |
| LikGaussian () | |
| virtual | ~LikGaussian () |
| double | evaluateLogPrior () |
| Evaluate the log prior of covariance function parameters. | |
| void | evaluateLogPriorGradient (FieldMatrixd &lpg) |
| Evaluate gradient of the log prior with respect to the parameters. | |
| void | evaluateTrainingCovarianceMatrix (const Coord &x, FieldMatrixd &C) |
| Evaluate training covariance matrix of inputs. | |
| Eigen::VectorXd | evaluateTrainingVariance (const Coord &x) |
| Noise on each assembly row, including virtual and robust geometry tags. | |
| void | setSigma2 (const double value) |
| Set sigma2 value. | |
| double | getSigma2 () const noexcept |
| Get sigma2 value (the per-row noise variance added to the energy diagonal of the training kernel by evaluateTrainingCovarianceMatrix). | |
| void | setOptimizeSigma2 (bool optimize) noexcept |
| bool | getOptimizeSigma2 () const noexcept |
| void | setVirtualGeometryNoise (const Coord &geometries, double extra_sigma2) |
| Register virtual (conditioning-only) geometries whose covariance rows carry extra heteroscedastic noise. | |
| Eigen::Index | virtualGeometryCount () const noexcept |
| void | setGeometryExtraNoise (const Coord &geometries, const Eigen::VectorXd &extra_sigma2) |
| Register per-geometry extra noise for every row of a geometry (energy and derivatives alike): the robust-row weights of the Student-t scale mixture, applied as heteroscedastic Gaussian noise. Rows are matched by bitwise coordinate equality, as for the virtual tag. An empty matrix clears the registration. | |
| const Eigen::VectorXd & | geometryExtraNoise () const noexcept |
| std::uint64_t | geometryNoiseRevision () const noexcept |
| Revision of the virtual and per-geometry noise registrations. | |
| void | setPriorParametersGaussian (const PriorBase &prior) |
| void | setPriorParametersSqrtt (const PriorBase &prior) |
| void | setParameters (const Eigen::VectorXd &w) |
| Eigen::VectorXd | combineParameters () |
| Combine parameters of the gaussian likelihood into one Eigen vector. | |
Gaussian noise with variance.
Definition at line 29 of file LikGaussian.h.
|
inline |
Definition at line 31 of file LikGaussian.h.
|
inlinevirtual |
Definition at line 32 of file LikGaussian.h.
|
inline |
Combine parameters of the gaussian likelihood into one Eigen vector.
Empty unless noise learning is enabled; with it, the single entry log(sigma2) appends AFTER the covariance parameters in the shared optimization vector, which is what arms the GP layer's trailing-noise detection (hasTrailingLikelihoodNoiseParameter).
Definition at line 50 of file LikGaussian.inl.
| double gpr::LikGaussian::evaluateLogPrior | ( | ) |
Evaluate the log prior of covariance function parameters.
This function returns
\[ log(p(th)) \]
, where th collects the parameters. This function is needed when there are likelihood parameters.
Definition at line 17 of file LikGaussian.cpp.
| void gpr::LikGaussian::evaluateLogPriorGradient | ( | FieldMatrixd & | lpg | ) |
Evaluate gradient of the log prior with respect to the parameters.
This function takes a Gaussian likelihood and returns
\[ LPG = d log (p(th))/dth \]
, where th is the vector of parameters. This function is needed when there are likelihood parameters.
| lpg | Result |
Definition at line 22 of file LikGaussian.cpp.
| void gpr::LikGaussian::evaluateTrainingCovarianceMatrix | ( | const Coord & | x, |
| FieldMatrixd & | C ) |
Evaluate training covariance matrix of inputs.
| x | Set of coordinates |
| C | Covariance matrix |
Definition at line 85 of file LikGaussian.cpp.
| Eigen::VectorXd gpr::LikGaussian::evaluateTrainingVariance | ( | const Coord & | x | ) |
Noise on each assembly row, including virtual and robust geometry tags.
Definition at line 27 of file LikGaussian.cpp.
|
inlinenodiscardnoexcept |
Definition at line 134 of file LikGaussian.h.
|
inlinenodiscardnoexcept |
Revision of the virtual and per-geometry noise registrations.
Definition at line 141 of file LikGaussian.h.
|
inlinenodiscardnoexcept |
Definition at line 86 of file LikGaussian.h.
|
inlinenodiscardnoexcept |
Get sigma2 value (the per-row noise variance added to the energy diagonal of the training kernel by evaluateTrainingCovarianceMatrix).
Definition at line 74 of file LikGaussian.h.
|
inline |
Register per-geometry extra noise for every row of a geometry (energy and derivatives alike): the robust-row weights of the Student-t scale mixture, applied as heteroscedastic Gaussian noise. Rows are matched by bitwise coordinate equality, as for the virtual tag. An empty matrix clears the registration.
Definition at line 122 of file LikGaussian.h.
|
inlinenoexcept |
Include log(sigma2) in the shared optimization vector so SCG learns the likelihood noise (Empirical Bayes on the joint [E,F] misfit scale). Off keeps the fixed-sigma2 published behavior.
Definition at line 82 of file LikGaussian.h.
|
inline |
Definition at line 34 of file LikGaussian.inl.
|
inline |
Definition at line 24 of file LikGaussian.inl.
|
inline |
Definition at line 29 of file LikGaussian.inl.
|
inline |
|
inline |
Register virtual (conditioning-only) geometries whose covariance rows carry extra heteroscedastic noise.
evaluateTrainingCovarianceMatrix matches assembly rows against these geometries by bitwise coordinate equality (both sides are pure copies of the same observation rows), so the tag survives row permutation, tiled layouts, and subset assemblies without index bookkeeping. Assemblies that contain none of the geometries (hyperparameter fitting on real rows only) are untouched. An empty matrix clears the tag.
Definition at line 103 of file LikGaussian.h.
|
inlinenodiscardnoexcept |
Definition at line 110 of file LikGaussian.h.