-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Do not rely on tag information for rv and logp conversions #6281
Conversation
8d27799
to
2cb57e1
Compare
c217cf9
to
f11923f
Compare
fadeedb
to
12e2b17
Compare
12e2b17
to
77a9eb6
Compare
5f507fd
to
6934a06
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6281 +/- ##
==========================================
- Coverage 94.30% 94.12% -0.19%
==========================================
Files 111 111
Lines 23809 23861 +52
==========================================
+ Hits 22452 22458 +6
- Misses 1357 1403 +46
|
f7d6e08
to
f649479
Compare
dd122ea
to
c2bc9b2
Compare
@ricardoV94 the type hint in It should say Best place a |
c2bc9b2
to
bbcc7a1
Compare
bbcc7a1
to
784eee0
Compare
0c5d5f8
to
ca3cf85
Compare
ffed024
to
2b266dc
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.
Overall looking good; great work, @ricardoV94 👍
I found some minor things in docstrings and I'm slightly worried that the big multiline expressions in some tests might result in hard to read tracebacks if they fail but this is also just a minor concern.
2b266dc
to
d0fb49d
Compare
Then we will make sure they never fail :D Yeah those tests a bit messy, but on the bright sight they are due to be removed when we deprecate the warnings. |
This PR will finally clean the interface for accessing meta-information from RVs needed when transforming back and forth between the RV and logp representations of a PyMC model
It does not yet remove that information to not break anything. Some methods relied heavily on this local information and were simply marked for deprecation, with alternatives being provided from scratch.
Accessing these variables (as long as they were introduced by PyMC) via tag will issue a FutureWarning:
Closes #5033
Closes #6236
Major / Breaking Changes
[value_variable|observations|transform|total_size]
viavar.tag
in favor ofmodel.rvs_to_[values|transforms|total_sizes]
joint_logp
in favor ofmodel.logp
aesaraf.rvs_to_value_vars
in favor ofmodel.replace_rvs_by_values
Bugfixes / New features
Docs / Maintenance