Skip to content

Commit e822fa7

Browse files
committed
STYLE removed unused import, fixed comment indent and spacing
1 parent 3af811e commit e822fa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sklearn/metrics/tests/test_ranking.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from sklearn.utils.testing import assert_array_equal
2222
from sklearn.utils.testing import assert_array_almost_equal
2323
from sklearn.utils.testing import assert_warns
24-
from sklearn.utils.testing import ignore_warnings
2524

2625
from sklearn.metrics import auc
2726
from sklearn.metrics import average_precision_score
@@ -308,7 +307,7 @@ def test_roc_curve_toydata():
308307
tpr, fpr, _ = roc_curve(y_true, y_score)
309308
assert_raises(ValueError, roc_auc_score, y_true, y_score)
310309
assert_array_almost_equal(tpr, [0., 0.5, 1.])
311-
assert_array_almost_equal(fpr, [np.nan, np.nan, np.nan])
310+
assert_array_almost_equal(fpr, [np.nan, np.nan, np.nan])
312311

313312
y_true = [1, 1]
314313
y_score = [0.25, 0.75]
@@ -743,7 +742,7 @@ def check_lrap_without_tie_and_increasing_score(lrap_score):
743742

744743
# Check for growing number of consecutive relevant label
745744
for n_relevant in range(1, n_labels):
746-
# Check for a bunch of position
745+
# Check for a bunch of position
747746
for pos in range(n_labels - n_relevant):
748747
y_true = np.zeros((1, n_labels))
749748
y_true[0, pos:pos + n_relevant] = 1

0 commit comments

Comments
 (0)