Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork26k
FIX ensure proper point dropping in roc_curve with drop_interm…#31647
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
github-actionsbot commentedJun 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
b131ea0
to7bf5946
CompareVishal-sys-code commentedJun 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for this. The introduction of |
Only drops truly redundant points where both FPR and TPR are unchangedFIX ensure proper point dropping in roc_curve by prepending (0,0) before drop_intermediate and maintaining current heuristic for test compatibilityUpdated the test caseUpdated commitImprove roc_curve's drop_intermediate with geometric collinearity
…ve expected thresholds.
a0af0e9
to9f9154d
Compare…d use cross‑product collinearity mask (always keeping the first finite threshold)
cb076fb
toac436b1
Compare88e5bc2
toeaa8aed
Compare5e3f77d
tof098d43
Compareimran4444shaik commentedJul 4, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi ! This PR fixes two key bugs insklearn.metrics.roc_curve whendrop_intermediate=True:
Bug 1: Incorrect Order of Operations
After Fix:
Problem: Intermediate points were dropped before adding (0,0), causing redundant points to remain. Bug 2: Faulty Collinearity Detection
After Fix:
Problem: Old method only removed points exactly midway between neighbors. Before Fix (Diagonal Segment):
After Fix:
Thanks ! |
Uh oh!
There was an error while loading.Please reload this page.
Fixes#31635
BUG Fix two issues in roc_curve with drop_intermediate=True
Fix incorrect ordering of point dropping vs prepending (0,0):
Replace faulty collinearity heuristic with geometric check:
Examples fixed:
Now correctly returns 3 points instead of 4