Skip to content

Commit

Permalink
Update classification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantula-leo authored Nov 17, 2023
1 parent 5626595 commit c1decdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sml/metrics/classification/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def fun_score(
y_true_binary, y_pred_binary = transform_binary(y_true, y_pred, i)
fun_result.append(fun(y_true_binary, y_pred_binary))
elif average == 'binary':
if transform is True:
if transform:
y_true_binary, y_pred_binary = transform_binary(y_true, y_pred, pos_label)
else:
y_true_binary, y_pred_binary = y_true, y_pred
Expand Down

0 comments on commit c1decdb

Please sign in to comment.