Loading...
Searching...
No Matches
ObservationLikelihood.h File Reference

Non-Gaussian observation-likelihood scaffolding for INLA inner Laplace. More...

#include <Eigen/Dense>
#include "../../backend/Macros.h"

Go to the source code of this file.

Classes

class  gpr::ObservationLikelihood
 Contract for non-Gaussian observation models used by the INLA inner Laplace step (Rasmussen-Williams Algorithm 3.1). More...

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.

Functions

Eigen::VectorXd gpr::findFMode (const EigenMatrix &K, const Eigen::VectorXd &y, const ObservationLikelihood &ol, int max_iter=30, double tol=1e-8)
 Posterior mode f_mode = argmax_f [log p(y|f) + log N(f | 0, K)] via the Rasmussen-Williams safe Newton recursion (Algo 3.1).
double gpr::laplaceMarginalLogLik (const EigenMatrix &K, const Eigen::VectorXd &y, const Eigen::VectorXd &f_mode, const ObservationLikelihood &ol)
 Laplace approximation to log p(y | theta) given prior K and the converged posterior mode f_mode (R&W eq. 3.32):

Detailed Description

Non-Gaussian observation-likelihood scaffolding for INLA inner Laplace.

Implements Rasmussen-Williams Algorithm 3.1 (posterior mode finding) and eq. 3.32 (Laplace-approximate marginal likelihood). Plugs into LaplaceINLA's Likelihood::NON_GAUSSIAN branch; no concrete ObservationLikelihood implementation ships in this branch (TLik, BernoulliProbitLik etc. are explicit follow-ups, tracked as beads).

Math validated symbolically in python/tests/test_sympy_laplace.py::test_bernoulli_probit_laplace_marginal_2pt (opt-in via pytest.mark.laplace_inner).

Definition in file ObservationLikelihood.h.