-
Notifications
You must be signed in to change notification settings - Fork 17
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
MHState #82
Conversation
I'm pretty sure in its current form the PR won't solve the problem - it seems the RNG object is saved in the transition but all subsequent calls of |
I'm pretty sure there was a discussion about saving RNGs in some repo at some point, and IIRC I was arguing that it's a more general problem that should be addressed in AbstractMCMC. For instance, by outputting/saving the RNG after the final step and inxluding it in the chain (deep copied?) if possible. Deep copying the RNG in every sampling step seems a bit wasteful to me and would slow down sampling, and only saving the initial RNG and the step number would mean you always have to rerun the whole sampling if you want to continue sampling - which means it would be as slow as running a single chain with all samples. |
I agree that this won't solve the problem -- this should be done upstream in AbstractMCMC. It'd be nice to store the seeds in each transition (which should be cheap) rather than deep copying the rng. |
Agreed! Closing the PR. |
Related TuringLang/AdvancedHMC.jl#314 |
Creates
which allows the sampling to restart by savign the iteration and rng of the sampler.