8000 TST fix doctest for k-NN · scikit-learn/scikit-learn@4b82379 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b82379

Browse files
committed
TST fix doctest for k-NN
1 parent d080429 commit 4b82379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial/statistical_inference/supervised_learning.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ Scikit-learn documentation for more information about this type of classifier.)
9393
>>> # Create and fit a nearest-neighbor classifier
9494
>>> from sklearn.neighbors import KNeighborsClassifier
9595
>>> knn = KNeighborsClassifier()
96-
>>> knn.fit(iris_X_train, iris_y_train)
96+
>>> knn.fit(iris_X_train, iris_y_train) # doctest: +NORMALIZE_WHITESPACE
9797
KNeighborsClassifier(algorithm='auto', leaf_size=30, metric='minkowski',
98-
n_neighbors=5, p=2, weights='uniform')
98+
metric_params=None, n_neighbors=5, p=2, weights='uniform')
9999
>>> knn.predict(iris_X_test)
100100
array([1, 2, 1, 0, 0, 0, 2, 1, 2, 0])
101101
>>> iris_y_test

0 commit comments

Comments
 (0)
0