Skip to content

Fix HMC notebook priors for inferred X and noise - #39

Merged
lawrennd merged 3 commits into
mainfrom
docs/hmc-sampling-priors
Nov 25, 2026
Merged

lawrennd merged 3 commits into
mainfrom
docs/hmc-sampling-priors

Conversation

@lawrennd

Copy link
Copy Markdown
Member

Summary

  • Document that the GP covariance supplies $p(Y\mid X)$, not a prior on inputs $X$.
  • Before HMC on infer_newX, set a Gaussian prior on mi.X from the training-input mean/std so sampling targets a proper $p(X\mid Y)$.
  • Marathon example: add a Gamma prior on noise variance so every unfixed parameter has a prior (aligns with Require priors for HMC/MH so transform Jacobians enter the target GPy#1331 require_priors=True).

Test plan

  • Run Example 1 through the infer_newX HMC cells against GPy from #1331
  • Run Example 2 (marathon) HMC cell; confirm it no longer fails the prior assert
  • Spot-check that multimodal structure in inferred $X$ is still visible with the Gaussian input prior

Add a Gaussian prior on infer_newX latents (GP gives p(Y|X), not p(X))
and a Gamma prior on marathon noise so every unfixed parameter is priorised
before HMC.
@lawrennd
lawrennd merged commit ced9313 into main Nov 25, 2026
2 checks passed
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