8000 BUG: Fix doctests. · scikit-learn/scikit-learn@486bc64 · GitHub
[go: up one dir, main page]

Skip to content

Commit 486bc64

Browse files
committed
BUG: Fix doctests.
1 parent edf3ea7 commit 486bc64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/modules/svm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ training data, called the support vectors. These vectors can be
8787
accessed in member `support_`:
8888

8989
>>> clf.support_
90-
array([0, 1], dtype=int32)
90+
array([0, 1])
9191

9292
Member `n_support_` holds the number of support vectors for each class:
9393

9494
>>> clf.n_support_
95-
array([1, 1], dtype=int32)
95+
array([1, 1])
9696

9797

9898
.. topic:: Examples:

scikits/learn/neighbors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def predict(self, T, n_neighbors=None):
135135
>>> neigh.fit(samples, labels)
136136
Neighbors(n_neighbors=1, window_size=1)
137137
>>> print neigh.predict([.2, .1, .2])
138-
0
138+
[0]
139139
>>> print neigh.predict([[0., -1., 0.], [3., 2., 0.]])
140140
[0 1]
141141
"""

0 commit comments

Comments
 (0)
0