-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG+1] TST Move roc_auc_score from METRIC_UNDEFINED_BINARY to METRIC_UNDEFINED_MULTICLASS #9786
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
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5d1f17f
move roc_auc_score
qinhanmin2014 5ffad5e
minor improve
qinhanmin2014 a8ebe41
set decimal=2
qinhanmin2014 5ef8af4
minor fix
qinhanmin2014 578c6f0
test decimal=1
qinhanmin2014 ab3ed4f
use assert_allclose
qinhanmin2014 6b2cf79
try another way
qinhanmin2014 4c6b4ba
Revert "try another way"
qinhanmin2014 bfa46d6
lesteve's idea
qinhanmin2014 b58e61f
have a try
qinhanmin2014 b1ac80a
refer to previous commit for previous solution
qinhanmin2014 aa38bb3
update what's new
qinhanmin2014 7fae5ab
Merge remote-tracking branch 'upstream/master' into test-feature-3
qinhanmin2014 60ae8bb
empty commit
qinhanmin2014 1ef462f
empty commit (unstable travis ...)
qinhanmin2014 4361ce7
conservative change according to lesteve
qinhanmin2014 c947d7b
not use auc?
qinhanmin2014 c09c26a
lesteve's great idea
qinhanmin2014 2b346e8
empty commit
qinhanmin2014 9be6181
empty commit (CI so unstable)
qinhanmin2014 cf6a08f
lesteve's idea
qinhanmin2014 b0f2efc
update what's new
qinhanmin2014 a15bc3c
improve
qinhanmin2014 5b054c2
Minor tweaks
lesteve 145d34e
minor comment
qinhanmin2014 0fdbe66
try new test on the CI
qinhanmin2014 e7eb7f0
improve
qinhanmin2014 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
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.
I feel like the fact that elements are sorted for one random sample isn't a very strong assurance. There are edge cases that could be further tested (such as having repeated thresholds), too, but I'm not sure what reasonable edge cases for this test are.
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.
Basically the edge cases are when the definition of fps are not equal because of floating point errors:
It is not obvious to me how to construct simply an example that does not work but maybe with a little bit of thought there is a way to put a simpler one together.
For full details the best is to look at the definition of _binary_clf_curve, especially how the other variables are defined.
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.
OK I found a simpler example:
Are you happier with this one @jnothman?
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.