-
Notifications
You must be signed in to change notification settings - Fork 31
concatenate sampler states from chains #488
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #488 +/- ##
==========================================
+ Coverage 86.01% 86.03% +0.02%
==========================================
Files 20 20
Lines 1144 1146 +2
==========================================
+ Hits 984 986 +2
Misses 160 160 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
MCMCChains.jl documentation for PR #488 is available at: |
|
@joelkandiah Would you be able to test if this PR works correctly? I think the following workflow should be fine with this PR: using Turing, Test # and anything else you need
chn = sample(model, spl, MCMCThreads(), N1, M; save_state=true)
# do some sanity checks
@test chn.info.samplerstate isa AbstractVector
@test length(chn.info.samplerstate) == M
chn2 = sample(model, spl, MCMCThreads(), N2, M; initial_state=chn.info.samplerstate) |
|
Ran the checks and a few others and am happy this is working as intended! |
Closes #487