Skip to content

Commit a0ccaa4

Browse files
authored
Update roc_metrics.py
1 parent 8375502 commit a0ccaa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics/roc_metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
import warnings
55
warnings.simplefilter(action='ignore', category=FutureWarning)
6-
from sklearn.metrics import roc_curve, auc
6+
from sklearn.metrics import roc_curve, auc, roc_auc_score
77
import numpy as np
88
import torch.nn.functional as F
99
import torch
@@ -118,4 +118,4 @@ def compute(self):
118118
"""Computes PE based on inputs passed in to ``update`` previously."""
119119
x = dim_zero_cat(self.x)
120120
y = dim_zero_cat(self.y)
121-
return pe(y, x)
121+
return pe(y, x)

0 commit comments

Comments
 (0)