-
Notifications
You must be signed in to change notification settings - Fork 266
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
Use precomputed mean/std to compute skewness and kurtosis #1349
Conversation
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 like it
These are simple mathematical operations and has couple of temporary arrays....you could check what further performance you get with numba's |
I tried with njit gets us another 10 %. |
Codecov Report
@@ Coverage Diff @@
## master #1349 +/- ##
==========================================
- Coverage 91.10% 91.04% -0.07%
==========================================
Files 183 184 +1
Lines 12548 12609 +61
==========================================
+ Hits 11432 11480 +48
- Misses 1116 1129 +13
Continue to review full report at Codecov.
|
Added more tests and njit, since it gave a 10 % improvement. Pls. review again. |
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.
can you run "black", or better yet try "pre-commit install" and see if it works properly ("pre-commit run" to manually run it). Mainly just to be pep 257-complant:
"For consistency, always use """triple double quotes""" around docstrings."
Otherwise looks fine! Nice to get a bit more speed without much effort.
@kosack done |
pytest cov seems to be unable to work with the njit functions. This is unfortunate but also not really surprising in hindsight. This is way diff coverage is so low |
master:
this: