Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4285ab7

Browse files
author
Fabian Pedregosa
committed
I have no idea why, but this fixes the broken doctest.
BTW, Only reproductible when run from python -c "..."
1 parent f21efa9 commit 4285ab7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scikits/learn/metrics/metrics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,8 @@ def auc(x, y):
160160
>>> y = np.array([1, 1, 2, 2])
161161
>>> pred = np.array([0.1, 0.4, 0.35, 0.8])
162162
>>> fpr, tpr, thresholds = metrics.roc_curve(y, pred)
163-
>>> print metrics.auc(fpr, tpr)
163+
>>> metrics.auc(fpr, tpr)
164164
0.75
165-
166165
"""
167166
x = np.asanyarray(x)
168167
y = np.asanyarray(y)

0 commit comments

Comments
 (0)