-
-
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
Cleanup logprob module #7443
Cleanup logprob module #7443
Conversation
This is now properly done by PartiallyObservedRV
Also: * Introduce MeasurableOpMixin for string representation * Subclass directly instead of registering manually
27e5525
to
78f148f
Compare
|
||
class MeasurableElemwise(Elemwise): | ||
def __str__(self): | ||
return f"Measurable{super().__str__()}" |
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.
This allows seeing when a Measurable replacement was actually performed in the IR graph. Most times we use a subclass of the pre-existing Op, and it would not be distinguishable in the string representation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7443 +/- ##
==========================================
- Coverage 92.18% 92.15% -0.04%
==========================================
Files 103 103
Lines 17263 17227 -36
==========================================
- Hits 15914 15875 -39
- Misses 1349 1352 +3
|
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.
Why can we get rid of the tests?
We removed a hacky functionality that is properly implemented by the auto-imputation machinery |
Description
Some non-functional cleanup of the logprob module that spinoff from other PRs
📚 Documentation preview 📚: https://pymc--7443.org.readthedocs.build/en/7443/