Skip to content

Add GPy notebook: INLA hyperparameter integration versus HMC - #44

Merged
lawrennd merged 2 commits into
mainfrom
inla-vs-hmc-notebook
Nov 28, 2026
Merged

lawrennd merged 2 commits into
mainfrom
inla-vs-hmc-notebook

Conversation

@lawrennd

@lawrennd lawrennd commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Adds GPy/inla_vs_hmc_poisson.ipynb, a comparison of INLAHyperparameters (GPy main, CIP-0015) with HMC on a simulated coal-mining-style Poisson series with a Matérn-3/2 kernel.

  • Both methods share the Laplace marginal likelihood, so the comparison isolates the integration over hyperparameters.
  • INLA and HMC agree on the latent posterior to under 0.01 (MAP plug-in about 0.02), at about 1 s versus tens of seconds.
  • The HMC run is deliberately short so the notebook fits the CI timeout, so the hyperparameter-marginal comparison is noisy; the notebook says so.
  • Includes the Colab badge and a cell that installs GPy from main if INLA is missing. Outputs are stripped by the repo's nbstripout hook.

Not covered: accuracy of the Laplace approximation itself, and Rue's Tokyo/Scottish examples (deferred).

@lawrennd
lawrennd merged commit 778c3f6 into main Nov 28, 2026
2 checks passed
@lawrennd
lawrennd deleted the inla-vs-hmc-notebook branch November 29, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant