Add implementation of precision-recall gain AUC#21370
Merged
fchollet merged 5 commits intokeras-team:masterfrom Jun 10, 2025
Merged
Add implementation of precision-recall gain AUC#21370fchollet merged 5 commits intokeras-team:masterfrom
fchollet merged 5 commits intokeras-team:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21370 +/- ##
=======================================
Coverage 82.72% 82.72%
=======================================
Files 565 565
Lines 54904 54910 +6
Branches 8520 8519 -1
=======================================
+ Hits 45418 45424 +6
Misses 7399 7399
Partials 2087 2087
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fchollet
approved these changes
Jun 10, 2025
Collaborator
fchollet
left a comment
There was a problem hiding this comment.
This is neat -- thanks for the contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We implement the AUC metric described in https://research-information.bris.ac.uk/files/72164009/5867_precision_recall_gain_curves_pr_analysis_done_right.pdf
This metric is intended to help classifiers when the true label fraction is far from balanced (0.5) and to be independent of the true label fraction, allowing to compare values between reweighted models, unlike the original PR curve.