-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add support for sample_stats group in pymc.testing.mock_sample
#7887
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7887 +/- ##
==========================================
- Coverage 92.94% 89.33% -3.61%
==========================================
Files 116 116
Lines 18851 18912 +61
==========================================
- Hits 17521 16895 -626
- Misses 1330 2017 +687
🚀 New features to boost your workflow:
|
|
Any updates needed for this? |
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.
LGTM. Just one very minor nit.
| from arviz import InferenceData | ||
| from numpy import random as nr | ||
| from numpy import testing as npt | ||
| from numpy.typing import NDArray |
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.
Maybe just use npt.NDArray as the code example in the docstring does?
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.
I see that numpy.testing as already imported as npt above. So I switched the docstring to use NDArray as well.
|
Getting some unrelated test failures now: https://github.com/pymc-devs/pymc/actions/runs/18698891077/job/53323157592 |
Description
This allows users to create sample_stats group in the mock sample helper
Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7887.org.readthedocs.build/en/7887/