8000 Microcanonical Langevin Monte Carlo by reubenharry · Pull Request #2039 · pyro-ppl/numpyro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Microcanonical Langevin Monte Carlo #2039

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reubenharry
Copy link
@reubenharry reubenharry commented Jun 23, 2025

This PR adds the Microcanonical Langevin Monte Carlo to Blackjax, following the discussion of issue #2035.

A couple things to resolve:

  • This incurs a Blackjax dependency. The only alternative would be to copy all the relevant Blackjax code into the implementation, which doesn't seem like a great idea.
  • The code is in the main directory, because if I try anything in the infer directory, such as hmc.py, I get an error ImportError: cannot import name 'device_get' from partially initialized module 'jax' (most likely due to a circular import) (/opt/homebrew/Caskroom/miniconda/base/envs/mclmc/lib/python3.11/site-packages/jax/__init__.py). Does this look familiar?
  • Before merging, I would probably like to set some better defaults for the amount of tuning etc, for robust performance.
  • I should presumably add a simple test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0