-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Split sampling.py into sampling.py and sampling_forward.py
#6257
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
|
I would suggest |
af3dec3 to
2c684d7
Compare
2c684d7 to
0997d3c
Compare
|
@ricardoV94 we need three modules because Tearing the tests apart might be the bigger problem here.. I like |
|
The predictive label is a bit misleading though. You can equally easily use mcmc to do predictive sampling (e.g., if you want to incorporate transforms/potentials) or use sample_*_predictive to do posterior inference (e.g., if you have a closed form posterior) |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6257 +/- ##
==========================================
+ Coverage 94.14% 94.17% +0.03%
==========================================
Files 100 102 +2
Lines 21239 21472 +233
==========================================
+ Hits 19996 20222 +226
- Misses 1243 1250 +7
|
sampling into three modulessampling into three modules
eab32fa to
451a207
Compare
|
What about moving the few items left in sampling_utils to utils and getting rid of that third file? |
These itemw are used by both of the others - I think it's nice to keep |
6d7de56 to
5080b71
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.
Self-approval, someone else please review. Commits should be squashed
4ab3fb8 to
ef8e38d
Compare
ef8e38d to
49b826a
Compare
michaelosthege
left a comment
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.
Diff looking good
sampling.pysampling.py into sampling.py and sampling_forward.py
This is a follow-up to pymc-devs#6257 where we split the `sampling.py` into two files.
This is a follow-up to #6257 where we split the `sampling.py` into two files.
Closes #6141
What is this PR about?
Splitting up the
sampling.pymodule such that MCMC and prior/posterior predictive sampling are separated.This also splits one of the longest-running test files.
I did not change any implementation - not even renamed a function.
For review, please check the
__all__settings, because they define what is the public API.Checklist
Docs / Maintenance
sampling.pyintosampling.pyandsampling_forward.py