JohannesBuchner / UltraNest

Fit and compare complex models reliably and rapidly. Advanced nested sampling.
https://johannesbuchner.github.io/UltraNest/
Other
153 stars 30 forks source link

Best way to increase precision/smoothness of posterior distribution #127

Open lazygun37 opened 7 months ago

lazygun37 commented 7 months ago

This is really a question rather than an "issue": I have several UltraNest runs on fairly complex models, using the SliceSampler. The runs seem to have converged OK, but the corner plots still look a bit jagged/messy. For the publication this will go in, I'd like to improve this. Is the best way to do this to change (increase) min_ess when doing sampler.run()?

JohannesBuchner commented 7 months ago

relevant papers here are:

lazygun37 commented 7 months ago

Thanks, a lot to digest there. Quick initial question re the last of these references: if I wanted to try out the "de-mix" sampler from the paper (which seems to be the most efficient), how would I do that? I can't seem to find it in the docs.

JohannesBuchner commented 7 months ago

Have a look at https://johannesbuchner.github.io/UltraNest/ultranest.html#ultranest.stepsampler.SliceSampler for the documentation how to select a proposal, and here https://github.com/JohannesBuchner/paper-nested-sampling-stepsampler-comparison/blob/main/calibrator.py#L27 for the mapping of names.

Maybe those short-hand names should be added to the docs of each function.

JohannesBuchner commented 7 months ago

de-mix is the default proposal in the tutorials, generate_mixture_random_direction()