-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 normalize mode at confusion matrix (replace nans with zeros) #3465
Conversation
10 failing tests( |
Nothing wrong, It's just the PyTorch version I think. Just replace |
Codecov Report
@@ Coverage Diff @@
## master #3465 +/- ##
========================================
- Coverage 85% 82% -3%
========================================
Files 105 116 +11
Lines 8157 9440 +1283
========================================
+ Hits 6943 7766 +823
- Misses 1214 1674 +460 |
Well, It's a bit weird, All tests at |
The checks are being cancelled because they take too long time (cancelled after 35 min). |
As I understand, it is not connected with my changes, right? So, what should i do now? |
Yes, it does not seem to be related to your PR (sometimes tests just fails) |
check master, it comes from there :) not your fault @c00k1ez |
Ok 👌 |
Added fix for Issue 1 from #2724. |
Hello @c00k1ez! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-13 14:00:31 UTC |
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.
Overall LGTM, just smaller comments
add comment to test Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Thanks 👍 |
What does this PR do?
Added same behaviour to
confusion_matrix
assklearn.metrics.confusion_matrix
with normalization while all predict and target values from same class (nan -> 0). Discussed it with @Borda at Slack.Also fixes #2724
Before submitting
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 🙃