Skip to content

Resuming a MCMC run #143

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

Closed
kyleabeauchamp opened this issue Jan 6, 2013 · 2 comments
Closed

Resuming a MCMC run #143

kyleabeauchamp opened this issue Jan 6, 2013 · 2 comments

Comments

@kyleabeauchamp
Copy link
Contributor

I noticed that various discussion threads have requested the ability to continue a MCMC run. By continue, I mean that after calling sample(), one could call sample again and append the results to generate a longer chain.

I realize that there is the "interactive" sampler, but to me it would be nice for all sampling to have a hot restart / append capabilities.

Feel free to close this if this has already been discussed and deemed undesirable.

@fonnesbeck
Copy link
Member

Hey Kyle,

You cannot resume a chain with sample(), but you can sample additional chains that will be started where the last chain left off when using sample() serially, then simply concatenating the chains together. PyMC3 will run multiple chains in parallel by default, which can then be treated as a single sample if desired for inference.

I will add the enhancement tag to this issue, so that restarting is universal for PyMC3.

@jsalvatier
Copy link
Member

we have this now

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

No branches or pull requests

3 participants