Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import for jaxns compatibility #1727

Closed
wants to merge 2 commits into from

Conversation

bmorris3
Copy link

I ran the nested sampling for gaussian shells tutorial which depends on jaxns, and I found that importing anything from numpyro/contrib/nested_sampling.py produces an error. The error occurs because the NestedSamplerResults class is not in the top-level jaxns namespace.

This PR simply imports from the correct submodule.

@bmorris3
Copy link
Author

I found some other lines that needed to be updated for jaxns (2.4.7). After 212baee, you can run the tutorial python script on the numpyro docs without modification with numpyro dev.

@fehiepsi
Copy link
Member

fehiepsi commented Feb 2, 2024

Thanks, @bmorris3! We currently only support jaxns=2.2.6. Please pin the version to a new one if you want to use the latest jaxns.

@fehiepsi
Copy link
Member

@bmorris3 We plan to make a new release this week. Do you want to pump jaxns versions in setup and docs requirements?

@fehiepsi
Copy link
Member

Hi @bmorris3, this is fixed in #1738. numpyro will be compatible with jaxns 2.4.8 in the next release.

@fehiepsi fehiepsi closed this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants