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

Support modern pseudo-random number generators from Numpy #383

Open
HDembinski opened this issue Mar 23, 2021 · 1 comment
Open

Support modern pseudo-random number generators from Numpy #383

HDembinski opened this issue Mar 23, 2021 · 1 comment

Comments

@HDembinski
Copy link

General information:

  • emcee version: 3.0.2

Problem description:

emcee does not seem to support the new Numpy random number generators.
https://numpy.org/doc/stable/reference/random/generator.html#numpy.random.Generator

I want to replace the Mersenne Twistor with the much better PCG generator. I tried setting .random_state on the EnsembleSampler and rstate0 on the run_mcmc call, but I always get "MT19937" when I call the random_state property on the output object.

@dfm
Copy link
Owner

dfm commented Mar 23, 2021

The open pull request #376 adds this support but it's still a work in progress. You could follow that PR for updates or see if you could see how to push it over the line!

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

No branches or pull requests

2 participants