Skip to content

Add implementation of precision-recall gain AUC #21370

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

Merged
merged 5 commits into from
Jun 10, 2025

Conversation

iazzi
Copy link
Contributor

@iazzi iazzi commented Jun 10, 2025

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.

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.72%. Comparing base (24f104e) to head (471838d).

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           
Flag Coverage Δ
keras 82.53% <100.00%> (+<0.01%) ⬆️
keras-jax 63.55% <100.00%> (+<0.01%) ⬆️
keras-numpy 58.70% <100.00%> (+<0.01%) ⬆️
keras-openvino 33.57% <8.33%> (-0.01%) ⬇️
keras-tensorflow 63.94% <100.00%> (+<0.01%) ⬆️
keras-torch 63.58% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is neat -- thanks for the contribution!

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jun 10, 2025
@fchollet fchollet merged commit 08ad93b into keras-team:master Jun 10, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to pull Ready to be merged into the codebase size:M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants