-
Notifications
You must be signed in to change notification settings - Fork 413
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
Fix OOM in pearson metric #380
Conversation
Hello @SkafteNicki! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-28 14:47:48 UTC |
for more information, see https://pre-commit.ci
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 work !
for more information, see https://pre-commit.ci
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.
mind check the typing added?
mx: Tensor, | ||
my: Tensor, | ||
vx: Tensor, | ||
vy: Tensor, | ||
cxy: Tensor, | ||
n: Tensor, |
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 we add a meaning to these vars?
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.
tried updating the variable names :]
Codecov Report
@@ Coverage Diff @@
## master #380 +/- ##
==========================================
+ Coverage 96.34% 96.39% +0.05%
==========================================
Files 120 120
Lines 3771 3801 +30
==========================================
+ Hits 3633 3664 +31
+ Misses 138 137 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@SkafteNicki seems that most of the tests are still failing... |
for more information, see https://pre-commit.ci
Before submitting
What does this PR do?
Fixes #373
Instead of storing all predictions and target in buffer for pearson correlation, we instead now iteratively update just 6 statistics which will save alot of memory.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃