-
-
Notifications
You must be signed in to change notification settings - Fork 26k
#31635 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 our terms of service and privacy 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
b131ea0
to
7bf5946
Compare
Thanks for this. The introduction of |
Only drops truly redundant points where both FPR and TPR are unchanged FIX ensure proper point dropping in roc_curve by prepending (0,0) before drop_intermediate and maintaining current heuristic for test compatibility Updated the test case Updated commit Improve roc_curve's drop_intermediate with geometric collinearity
…ve expected thresholds.
a0af0e9
to
9f9154d
Compare
…d use cross‑product collinearity mask (always keeping the first finite threshold)
cb076fb
to
ac436b1
Compare
88e5bc2
to
eaa8aed
Compare
5e3f77d
to
f098d43
Compare
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
Maintains array-api compatibility and numerical stability.