Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki committed Mar 23, 2021
1 parent 5d5e852 commit c95f4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmetrics/functional/classification/auroc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _auroc_compute(
# calculate fpr, tpr
if mode == 'multi-label':
if average == AverageMethod.MICRO:
fpr, tpr, _ = roc(preds.flatten(), target.flatten(), num_classes, pos_label, sample_weights)
fpr, tpr, _ = roc(preds.flatten(), target.flatten(), 1, pos_label, sample_weights)
else:
# for multilabel we iteratively evaluate roc in a binary fashion
output = [
Expand Down

0 comments on commit c95f4e1

Please sign in to comment.