From ac2ec7cab39fd0ae940449de80cbb0aa2dad6bd6 Mon Sep 17 00:00:00 2001 From: Almer Date: Thu, 2 Mar 2017 18:28:59 +0100 Subject: [PATCH] Correct typo in kneighbors parameter documentation. --- sklearn/neighbors/approximate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/neighbors/approximate.py b/sklearn/neighbors/approximate.py index c6f602979ea1b..7f7321abdfb1c 100644 --- a/sklearn/neighbors/approximate.py +++ b/sklearn/neighbors/approximate.py @@ -407,7 +407,7 @@ def kneighbors(self, X, n_neighbors=None, return_distance=True): List of n_features-dimensional data points. Each row corresponds to a single query. - n_neighbors : int, opitonal (default = None) + n_neighbors : int, optional (default = None) Number of neighbors required. If not provided, this will return the number specified at the initialization.