-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
PyMC implementation of WALNUTS sampler #7836
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
Why not hook up to the walnuts implrementation Bob et al provide? |
This borrows directly and heavily from Bob's repo. Its really not a lot of code. |
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (6.87%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7836 +/- ##
==========================================
- Coverage 92.91% 88.81% -4.11%
==========================================
Files 107 111 +4
Lines 18286 19201 +915
==========================================
+ Hits 16991 17053 +62
- Misses 1295 2148 +853
🚀 New features to boost your workflow:
|
Sure, but they'll keep iterating on it so we'd always need to keep up with changes. Anyway, I'm not against it, we can always revert back to their implementation if we find it's a great sampler. Or pymc-extras might also be a place. |
…ize and state management. Introduced new utility classes for state storage and U-turn checks, and updated the constructor parameters for improved flexibility. Added comprehensive docstring for clarity and reference.
Yeah, this should probably be in I think that if it turns out to be a performant algorithm we will want our own implementation of it (doesn't have to be this one, of course). |
Moved to pymc-devs/pymc-extras#530 |
Description
First pass at implementing WALNUTS, partly as a learning opportunity. It runs with
pm.sample
but does not yet produce a good sample. Still lots of work to do.Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7836.org.readthedocs.build/en/7836/