8000 Sync docstring and definition default argument in kneighbors (#7476) · Sundrique/scikit-learn@8dac594 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dac594

Browse files
hnykdaSundrique
authored andcommitted
Sync docstring and definition default argument in kneighbors (scikit-learn#7476)
1 parent 93f3f2c commit 8dac594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/neighbors/approximate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def kneighbors(self, X, n_neighbors=None, return_distance=True):
411411
Number of neighbors required. If not provided, this will
412412
return the number specified at the initialization.
413413
414-
return_distance : boolean, optional (default = False)
414+
return_distance : boolean, optional (default = True)
415415
Returns the distances of neighbors if set to True.
416416
417417
Returns

0 commit comments

Comments
 (0)
0