-
-
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
Fix regression #6840 #6843
Fix regression #6840 #6843
Conversation
The `tune` attribute is reset by the sampling iterator. Closes pymc-devs#6840
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6843 +/- ##
==========================================
- Coverage 92.03% 84.37% -7.66%
==========================================
Files 96 96
Lines 16378 16376 -2
==========================================
- Hits 15074 13818 -1256
- Misses 1304 2558 +1254
|
Why no test? |
I didn't want to increase test runtime with something that tests a non-behavior. We could start asserting the sizes in other tests that run for all samplers though. Then we'd catch such a bug for all samplers - not just the ones impacted this time. |
Ideally we can extend one of the tests that already runs for all samplers. In general, the step sampler API seems quite a mess :/ |
Thanks for the quick fix! |
The
tune
attribute is reset by the sampling iterator.Closes #6840
Tested locally with
Bugfixes
BinaryGibbsMetropolis
andCategoricalGibbsMetropolis
📚 Documentation preview 📚: https://pymc--6843.org.readthedocs.build/en/6843/