minaskar / zeus

⚡️ zeus: Lightning Fast MCMC ⚡️
https://zeus-mcmc.readthedocs.io/
GNU General Public License v3.0
225 stars 34 forks source link

logprob values #1

Closed grburgess closed 4 years ago

grburgess commented 4 years ago

Hello,

I cannot tell from the documentation if the log prob or log likelihood values are stored. Can you point me to this?

minaskar commented 4 years ago

Hi Michael,

The log prob values are not stored in the current (1.0.3) release of zeus, just the chain samples. However, this is something that will be added in a future release, probably in 1.0.4 next week.

grburgess commented 4 years ago

Thanks! We store them in our software and wanted to add zeus into our sampler suite, but right now it means revaluate the whole chain :)

looking forward to that.

minaskar commented 4 years ago

May ask if your software package is/will be public. I'm interested to see how people use zeus.

I'll update this thread when the feature is added to zeus (probably a matter of days).

grburgess commented 4 years ago

Absolutely: https://threeml.readthedocs.io/en/latest/notebooks/Bayesian_tutorial.html

https://threeml.readthedocs.io/en/latest/index.html

It is a multi-messenger spectral/spatial fitting software package for astrophysics. I'm currently rewriting the Bayes API to make it easier to switch between the samplers and add them on.

minaskar commented 4 years ago

Hi Michael, please have a look at the latest version (1.0.5).

Let me know if that solves your issue.

Minas

grburgess commented 4 years ago

I think this got it. Thanks!

grburgess commented 4 years ago

And we have implemented it here: https://threeml.readthedocs.io/en/latest/notebooks/Bayesian_tutorial.html#The-Zeus-sampler

We cannot have it yet as a default sampler because it is not on conda which we use to build all of our dependencies due to having many, but when it is on conda, we will pop that right in. Thanks for this!