Skip to content

Commit

Permalink
fix(Metric): Warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
szemyd committed Jan 15, 2024
1 parent 0beab0e commit 3ca81d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/krisi/evaluate/library_/metric_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def wrap_roc_auc(
if len(prob_columns) == 2:
probs = probs.iloc[:, 1]
if len(np.unique(y)) == 1:
return "ROC AUC only works with more than one class."
return "ROC AUC only works with more than one class. `y` contains only instance of one class."

return roc_auc_score(
y_true=y,
Expand Down

0 comments on commit 3ca81d0

Please sign in to comment.