-
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
[Metrics] Unification of FBeta #4656
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.
it is quite hard to see what is move and what is change, but I very welcome this unification, I tried already when it was added :] #4043 (comment)
@Borda yes, I saw your comment and promised long time ago update to the metric. |
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 as always :)
Codecov Report
@@ Coverage Diff @@
## master #4656 +/- ##
======================================
- Coverage 93% 93% -0%
======================================
Files 117 118 +1
Lines 9010 9018 +8
======================================
+ Hits 8383 8389 +6
- Misses 627 629 +2 |
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.
👍 ⚡
Co-authored-by: Adrian Wälchli <[email protected]>
* implementation * init files * more stable reduction * add tests * docs * remove old implementation * pep8 * changelog * Apply suggestions from code review Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Nicki Skafte <[email protected]> Co-authored-by: Teddy Koker <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit 6831ba9)
* implementation * init files * more stable reduction * add tests * docs * remove old implementation * pep8 * changelog * Apply suggestions from code review Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Nicki Skafte <[email protected]> Co-authored-by: Teddy Koker <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit 6831ba9)
* implementation * init files * more stable reduction * add tests * docs * remove old implementation * pep8 * changelog * Apply suggestions from code review Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Nicki Skafte <[email protected]> Co-authored-by: Teddy Koker <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit 6831ba9)
What does this PR do?
Update to fbeta metric:
F1
metric as it is the most commonly used metricFbeta
->FBeta
and functionalsfbeta_score
->fbeta
,f1_score
->f1
for consistencyaverage
argument now also supportsweighted
andNone
as optionsreduction='micro'
)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 in short, see following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃