-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] brier_score_loss returns incorrect value when all y_true values are True/1 #9301
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
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1f227e9
Added more tests for brier_score_loss
gnsiva 5c47b1d
Potential fix for brier_score_loss bug
gnsiva 88a94a1
Made fix work for categorical data as well
gnsiva 5f15bc3
Removed accidental duplication of test_brier_score_loss
gnsiva e3294ec
Fixed flake8 problems
gnsiva d681a02
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
GaneshParkopedia 3c955c8
Updated changelog
GaneshParkopedia 1294fab
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
GaneshParkopedia 5347cbf
Fixed formatting comments
GaneshParkopedia 18adb43
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
GaneshParkopedia ff264f7
Fixed line width error
gnsiva a4893a1
Added common test for all true where there is a pos_label arg
gnsiva 38831ac
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
gnsiva 314437e
Addressed comments
gnsiva 0c8b50a
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
gnsiva 24cefdc
Made specific list of metrics for common pos_label test
gnsiva f250968
Merge remote-tracking branch 'official/master' into brier_score_loss_bug
gnsiva 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.
Thanks for this.
Should we be explicitly passing pos_label=1?
And I'm not sure about what we're saying about metrics where the second arg is a score or probability here...
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.
Changed it to explicitly pass that.
I thought the test would be like the equivalent of
check_classifiers_one_label
but for those metrics.