-
Notifications
You must be signed in to change notification settings - Fork 46
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
[ENH] Improve distribution tests #57
Conversation
* Add test to check log of the pdf is the same as the log_pdf function. * Add test to check the ppf is the inverse of the cdf.
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.
Thanks a lot!
Non-blocking change suggestions:
- I think you should add yourself to the authors field of
test_all_distrs
for this - this does not seem to directly check the output dtypes that the change to
_apply_per_ix
fixes. Should a direct check be added to_check_output_format
?
sorry, the failures are due to the recent upgrade of the precommit hooks, it now likes and dislikes slightly different things. Should be fixed with an update from |
there´s one left, just fixing: #62 merged and pushed to this branch - sorry for the inconvenience. Should be fixed now. |
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
==========================================
+ Coverage 68.81% 70.63% +1.81%
==========================================
Files 93 93
Lines 4881 4904 +23
Branches 886 890 +4
==========================================
+ Hits 3359 3464 +105
+ Misses 1294 1204 -90
- Partials 228 236 +8
☔ View full report in Codecov by Sentry. |
Thanks for sorting this out! |
Well, sorry for messing it up in the first place... |
Reference Issues/PRs
Closes #55, see also #21.
What does this implement/fix? Explain your changes.
pdf
function is similar to thelog_pdf
function for each distribution.ppf
is the inverse of thecdf
function. This test required the change described in 1 to usenp.allclose
.pandas
outputs of methods have allnumeric
dtype
-sAlso fixes one instance that would have failed 2, 3:
_apply_per_ix
function of theEmpirical
distribution. Switches to useto_numeric
instead ofconvert_dtypes
.Does your contribution introduce a new dependency? If yes, which one?
No
What should a reviewer concentrate their feedback on?
Any other comments?
PR checklist
For all contributions
the PR topic is related to enhancement, CI/CD, maintenance, documentation, or a bug.
For code contributions