-
-
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
Rename moment
to support_point
#7166
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7166 +/- ##
==========================================
- Coverage 92.29% 92.26% -0.04%
==========================================
Files 101 101
Lines 16947 16966 +19
==========================================
+ Hits 15642 15653 +11
- Misses 1305 1313 +8
|
3bb5b5b
to
4813f2d
Compare
I renamed |
@ricardoV94 could you please take a look? |
@aerubanov great work. I have some suggestions, let me know what you think:
|
@ricardoV94 your suggestions sounds good, will implement it |
@@ -653,34 +653,34 @@ def check_selfconsistency_discrete_logcdf( | |||
) | |||
|
|||
|
|||
def assert_moment_is_expected(model, expected, check_finite_logp=True): | |||
def assert_support_point_is_expected(model, expected, check_finite_logp=True): |
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 is also user facing (in that we use this utility in other libraries), so should also add a wrapper with a deprecation warning.
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 added option for using old name
moment
to support_point
Description
Rename
moment
method to avoid confusion with distribution mean.Related Issue
moment
tofinite_logp_point
#6974Checklist
moment
method in code (and other related variable names)Type of change
📚 Documentation preview 📚: https://pymc--7166.org.readthedocs.build/en/7166/