Skip to content

Commit

Permalink
Update ignite/contrib/metrics/roc_auc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jul 6, 2023
1 parent 35a2da3 commit 6ac5664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ignite/contrib/metrics/roc_auc.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def sigmoid_output_transform(output):
.. testoutput::
FPR [0.0, 0.333, 0.333, 1.0]
TPR [0.0, 0.0, 1.0, 1.0]
Thresholds [inf, 1.0, 0.711, 0.047]
Thresholds [2.0, 1.0, 0.711, 0.047]
.. versionchanged:: 0.4.11
Expand Down Expand Up @@ -192,3 +192,4 @@ def compute(self) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: # type: i
thresholds = idist.broadcast(thresholds, src=0, safe_mode=True)

return fpr, tpr, thresholds

0 comments on commit 6ac5664

Please sign in to comment.