-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove t suffix from Model methods #5863
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
@@ Coverage Diff @@
## main #5863 +/- ##
==========================================
+ Coverage 89.45% 89.50% +0.04%
==========================================
Files 73 73
Lines 13234 13267 +33
==========================================
+ Hits 11839 11874 +35
+ Misses 1395 1393 -2
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Should I add/replicate test for the |
If you want you can try to monkey patch the methods to make sure what was called internally, but otherwise there's no need. I'll review carefully with some fresh eyes to confirm it looks alright ;) |
This looks like something we should fast-track into a @ricardoV94 can you review it? |
I'll review it on Monday |
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 great, left some suggestions and highlighted one missed property with t
suffix.
RELEASE-NOTES.md
Outdated
- `logpt`, `logpt_sum`, `logp_elemwiset` and `nojac` variations were removed. Use `Model.logp(jacobian=True/False, sum=True/False)` instead. | ||
- `dlogp_nojact` and `d2logp_nojact` were removed. Use `Model.dlogp` and `d2logp` with `jacobian=False` instead. |
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.
We shouldn't change the old Release Notes as this refer to the already released V4.0.0. Instead you should add a new release note in the most recent section explaining the changes from t
suffix to no suffix.
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 weekend I already created a 4.0.1
section in the release notes.
You'll have to rebase, otherwise there will be git conflicts..
Co-authored-by: Ricardo Vieira <[email protected]>
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 great 👍
|
Thanks @cuchoi! |
Closes #5859
To-do:
model.logpt
,model.dlogpt
andmodel.d2logpt
to pymc.model.Model without the t suffix. Keep the old ones as a simple wrapper that issues a FutureWarning in betweenmodel.datalogpt
,model.varlogpt
,model.observedlogpt
, andmodel.potentiallogpt
,distributions.joint_logpt
as welldocs/source/contributing/developer_guide.rst
anddocs/source/learn/core_notebooks/pymc_aesara.ipynb