JohannesBuchner / UltraNest

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

what is equivalent of random walk steps in ultranest #53

Closed subhratadey closed 2 years ago

subhratadey commented 2 years ago

Description

I want to have a fixed number of values for free parameters for each run. I am aware that in emcee package that is done by setting the step number. Could you kindly tell me how I can obtain a similar result in ultranest package?

What I Did

I tried setting the steps and max_nsteps variables but it didn't help.

JohannesBuchner commented 2 years ago

I don't quite understand what you want to do. Do you want to force a fixed computation budget? That's not easily possible with nested sampling, but there are a few parameters that you can adapt to stop after a fixed number of calls.

Have a look at the run() parameters https://johannesbuchner.github.io/UltraNest/ultranest.html#ultranest.integrator.ReactiveNestedSampler.run especially:

It is likely that if you ask nested sampling to terminate early, all posterior weight is still concentrated in one of the live points, so you cannot resolve the posterior. Nevertheless, comparing the live points to the prior will give you relevant information.