-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Logprob derivation for Max of continuous IID variables #6769
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
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6769 +/- ##
==========================================
+ Coverage 89.15% 92.05% +2.90%
==========================================
Files 95 96 +1
Lines 16324 16373 +49
==========================================
+ Hits 14553 15072 +519
+ Misses 1771 1301 -470
|
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.
Looks like a great start, left some comments below.
pymc/logprob/order.py
Outdated
|
||
|
||
class MeasurableMax(MaxAndArgmax): | ||
"""A placeholder used to specify a log-likelihood for a clipped RV sub-graph.""" |
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.
"""A placeholder used to specify a log-likelihood for a clipped RV sub-graph.""" | |
"""A placeholder used to specify a log-likelihood for a max sub-graph.""" |
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.
Great progress @Dhruvanshu-Joshi! Some comments to complement @ricardoV94's review
73fd883
to
2b6181a
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.
Great progress @Dhruvanshu-Joshi! Slight comments about the documentation on my side
97911de
to
9759720
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.
Looks good. Let's separate the docs into their own PR.
You can use an already supported case like cumsum
instead of the max
in that PR
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.
Some comments in preparation for tomorrow's meeting :) This PR is shaping up very nicely, we're close to merging!
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.
Everything looks pretty good, just a small check missing I think.
Remind me what's pending for merging this PR? |
I think it just needs to be rebased so the tests pass. There was an unrelated failure that crop up elsewhere |
9f9f16b
to
7e79bfa
Compare
93c5051
to
8bf0154
Compare
What is this PR about?
This PR aims to provide a solution for implementing the Max operation from order statistics to solve the issue [#6350] (#6350) and issue #6773. More tests are to be added.
Checklist
Major / Breaking Changes
New features
pt.max
Bugfixes
To-do:
Documentation
Maintenance
📚 Documentation preview 📚: https://pymc--6769.org.readthedocs.build/en/6769/