-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixes for the McBackend adapter #6835
Fixes for the McBackend adapter #6835
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6835 +/- ##
==========================================
- Coverage 92.04% 89.49% -2.55%
==========================================
Files 95 95
Lines 16298 16322 +24
==========================================
- Hits 15001 14607 -394
- Misses 1297 1715 +418
|
b96181b
to
33364d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what's going on with the "object"
vs "str"
dtype. Otherwise LGTM
thanks for the review! To clarify this part: Sampler warnings are That's why they must be announced as str-typed when setting up the backend |
What is this PR about?
This fixes two bugs that were reported by @thelogicalgrammar in pymc-devs/mcbackend#93.
The first was a leftover of a previous refactoring of sampler stats, and the way how the
"tune"
stat is handled in PyMC.For the record: Our current approach of passing information about tuning/not-tuning via sample stats is brittle. It's a per-sampler thing, but in practice it's actually a per-iteration thing from the PyMC, ArviZ and McBackend perspective. IMO we should consider taking it out of the step method attributes and stats, and instead pass
tune
as a parameter to theastep
method.However, this is out of scope for this PR, so I aligned with the current design and added
"tune"
to two step methods that didn't have it, much like Ricardo did forSlice
in fee9a02.The second bug was just a small dtype thing for pickled stat objects.
I tested it locally with a ClickHouse server:
Checklist
Major / Breaking Changes
New features
Bugfixes
Documentation
Maintenance
"tune"
stat📚 Documentation preview 📚: https://pymc--6835.org.readthedocs.build/en/6835/