JohannesBuchner / PyMultiNest

Pythonic Bayesian inference and visualization for the MultiNest Nested Sampling Algorithm and PyCuba's cubature algorithms.
http://johannesbuchner.github.io/PyMultiNest/
Other
194 stars 88 forks source link

making corner plots for different modes #196

Closed svaverbe closed 3 years ago

svaverbe commented 3 years ago

When the algorithm runs multimodel, is it possible to make cornerplots for the different modes ? How can one access the samples for each mode ?

JohannesBuchner commented 3 years ago

Yes, I think the modes are in the marginals dictionary, available through the analyser.

analyser.get_mode_stats() or analyser.get_stats()['marginals']

https://github.com/JohannesBuchner/PyMultiNest/blob/master/pymultinest/analyse.py#L173

If INS is turned on, multinest does not produce this information, IIRC.

JohannesBuchner commented 3 years ago

Oh, I think the samples are not available through pymultinest.

I am not sure, maybe multinest writes a text file with them. Have a look at the README https://github.com/JohannesBuchner/MultiNest/#readme