Skip to content

Commit 52cc103

Browse files
committed
Removes useless (and time consuming) statement.
1 parent 201ce57 commit 52cc103

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sklearn/metrics/metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def roc_curve(y_true, y_score):
120120
raise ValueError("ROC is defined for binary classification only")
121121

122122
y_score = y_score.ravel()
123-
thresholds = np.sort(np.unique(y_score))[::-1]
124123

125124
n_pos = float(np.sum(y_true == classes[1])) # nb of true positive
126125
n_neg = float(np.sum(y_true == classes[0])) # nb of true negative

0 commit comments

Comments
 (0)