-
Notifications
You must be signed in to change notification settings - Fork 423
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
Changes for Test Differentiability [2/n] #178
Changes for Test Differentiability [2/n] #178
Conversation
Hello @bhadreshpsavani! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-04-30 13:12:29 UTC |
Codecov Report
@@ Coverage Diff @@
## master #178 +/- ##
==========================================
+ Coverage 96.65% 96.67% +0.01%
==========================================
Files 180 180
Lines 5744 5770 +26
==========================================
+ Hits 5552 5578 +26
Misses 192 192
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
some tests are failing because this assert cannot handle metrics that returns multiple values. if isinstance(out, list):
assert all(metric.is_differentiable == o.requires_grad for o in out)
else:
assert metric.is_differentiable == out.requires_grad |
After looking a bit on the failing tests it seems that:
@bhadreshpsavani could you add a |
@bhadreshpsavani mind check the failing tests? |
For the pytorch bug - it would be great to have a small isolated repro to file as an issue for pytorch. On AUC - is it really meaningful to treat it as differentiable? What tasks will do that? |
Hi @Borda, |
Hi @SkafteNicki, |
After searching the internet, AUC indeed is described as an non-differentiable function and it must therefore be our specific implementation in pytorch that allows gradient to be backprop. |
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.
LGTM
Before submitting
What does this PR do?
Fixes #26
PR review
@SkafteNicki
Note: