PyMC implementation of WALNUTS sampler#7836
PyMC implementation of WALNUTS sampler#7836fonnesbeck wants to merge 4 commits intopymc-devs:mainfrom
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 Report❌ Patch coverage is 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.samplebut 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/