Skip to content

MCMC uniform prior in linear space and NUTS - #507

Merged
markrosslonergan merged 7 commits into
project-SBN-devfrom
feature/project-SBN-dev/jlarkin_linspace_priors
Aug 14, 2026
Merged

MCMC uniform prior in linear space and NUTS#507
markrosslonergan merged 7 commits into
project-SBN-devfrom
feature/project-SBN-dev/jlarkin_linspace_priors

Conversation

@jacoblarkin

Copy link
Copy Markdown
Collaborator

Making PR now to avoid straying too far from project-SBN-dev and to allow for an easier time with upcoming bin/PROfit.cxx refactoring.

Some MCMC enhancements. Still WIP, but ready to merge as an first pass. Adds a new target class which will use a uniform prior in linear space even if the physics variables are in log space. (TODO: This doesn't actually check that the model is in log space first so that should be added.)

Adds No U-Turn Sampling and standard Hamiltonian Monte Carlo classes. Only NUTS is hooked up to a command line argument right now and only for the mcmc subcommand. More testing is needed to check that everything is working properly, but the few chains I made looked reasonable even if the trees for each step were growing much larger than one would expect.

The analytic gradient from Lee would be very interesting to test with NUTS/HMC.

@markrosslonergan
markrosslonergan merged commit bf967a6 into project-SBN-dev Aug 14, 2026
1 check 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.

2 participants