-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX roc_auc_curve: Return np.nan instead of 0.0 for single class (#30103
) Co-authored-by: Guillaume Lemaitre <[email protected]>
- Loading branch information
Showing
5 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- :func:`metrics.roc_auc_score` will now correctly return 0.0 and | ||
- :func:`metrics.roc_auc_score` will now correctly return np.nan and | ||
warn user if only one class is present in the labels. | ||
By :user:`Gleb Levitski <glevv>` | ||
By :user:`Gleb Levitski <glevv>` and :user:`Janez Demšar <janezd>` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- :func:`metrics.roc_auc_score` will now correctly return np.nan and | ||
warn user if only one class is present in the labels. | ||
By :user:`Gleb Levitski <glevv>` and :user:`Janez Demšar <janezd>` |
This file contains 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 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 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