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 6ac5664 commit 9a35bfa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ignite/contrib/metrics/roc_auc.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,8 @@ def sigmoid_output_transform(output):
print("FPR", [round(i, 3) for i in state.metrics['roc_auc'][0].tolist()])
print("TPR", [round(i, 3) for i in state.metrics['roc_auc'][1].tolist()])
print("Thresholds", [round(i, 3) for i in state.metrics['roc_auc'][2].tolist()])
.. testoutput::
FPR [0.0, 0.333, 0.333, 1.0]
Thresholds [inf, 1.0, 0.711, 0.047]
Thresholds [2.0, 1.0, 0.711, 0.047]
print("TPR", [round(i, 3) for i in state.metrics['roc_auc'][1].tolist()])
print("Thresholds", [round(i, 3) for i in state.metrics['roc_auc'][2].tolist()])
.. versionchanged:: 0.4.11
added `device` argument
Expand Down

0 comments on commit 9a35bfa

Please sign in to comment.