Skip to content
Permalink
Browse files

TST fix doctest for k-NN

  • Loading branch information...
larsmans committed Aug 25, 2014
1 parent d080429 commit 58a55ad372e6d99f69da95468c7eef51ee53ce15
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/tutorial/statistical_inference/supervised_learning.rst
@@ -95,7 +95,7 @@ Scikit-learn documentation for more information about this type of classifier.)
>>> knn = KNeighborsClassifier()
>>> knn.fit(iris_X_train, iris_y_train)
KNeighborsClassifier(algorithm='auto', leaf_size=30, metric='minkowski',
n_neighbors=5, p=2, weights='uniform')
metric_params=None, n_neighbors=5, p=2, weights='uniform')
>>> knn.predict(iris_X_test)
array([1, 2, 1, 0, 0, 0, 2, 1, 2, 0])
>>> iris_y_test

0 comments on commit 58a55ad

Please sign in to comment.
You can’t perform that action at this time.