Closed bbbales2 closed 3 years ago
Thank you for the great bug report! The reason why this works with the last commit version and not pip
is that the readme example is not in sync with the pip
version. Indeed, since the 2.1
release we're asking users to provide a logprobability function and not a potential function anymore. If you return -jnp.sum(logpdf)
instead of jnp.sum(logpdf)
this should give you the correct results.
I'll cut a new release in the next few days.
Ah, makes sense, thanks. Feel free to close whenever -- I'll use the github clone for now!
Bug Description
I'm running the example code from the readme (this) and the version of blackjax in pip seems to not work for me (
pip install blackjax
) but the version in Github does (installed with git clone andpip install .
).I don't really know what goes into packaging things on pip or what the difference might be, so close if this just seems like a problem with my system!
Thanks for the nice package
Steps/Code to Reproduce
The code I'm running is this (same as example, just added a plot):
Expected Results
Here's what I get with Github blackjax:
Actual Results
Here's what I get with pip blackjax:
I repeated this multiple times with different seeds.
Versions
This is the version the github install shows:
This is what the version from pip shows (along with everything else):