-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make HMCState
stores rng
in AbstractMCMC
interface.
#314
Comments
Done! |
But If you want it for reproducibility, then a) I'm a bit uncertain what scenario you have in mind, and b) you'd have to |
See, e.g., https://juliarandom.github.io/RandomNumbers.jl/stable/man/random123/ EDIT: we can use counter-based rngs -- saving the state is equivalent to saving the counter value, which is cheap. |
I'm fully with you that keeping track of the If we decide to add Moreover, the
Am fully aware this is an option, but then you're suggesting always forcing usage of Random123? This is clearly not ideal. |
AdvancedHMC.jl/src/abstractmcmc.jl
Line 166 in 82de3ff
We should add
rng
to the HMC state for continuing HMC sampling from a previous stopping point.The text was updated successfully, but these errors were encountered: