-
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 num_classes
arg in F1 metric
#5663
Fix num_classes
arg in F1 metric
#5663
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.
Perfect, can we get this in the next release?
Codecov Report
@@ Coverage Diff @@
## master #5663 +/- ##
======================================
Coverage 93% 93%
======================================
Files 135 135
Lines 10051 10051
======================================
Hits 9383 9383
Misses 668 668 |
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, just get Borda's comments!
* fix f1 metric * Apply suggestions from code review * chlog Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
* fix f1 metric * Apply suggestions from code review * chlog Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
What does this PR do?
Fixes #5662
Removes default for
num_classes
arg inF1
metric, as not setting it correctly can lead to strange results.Furthermore make sure
F1
is actually tested and not justFBeta
metric withbeta=1.0
.cc: @teddykoker
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃