10000 DOC correct shape of returned ndarray in BinaryTree.query (#18969) · scikit-learn/scikit-learn@54375d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54375d2

Browse files
authored
DOC correct shape of returned ndarray in BinaryTree.query (#18969)
1 parent 64c1ff0 commit 54375d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/neighbors/_binary_tree.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,11 +1323,11 @@ cdef class BinaryTree:
13231323
i : if return_distance == False
13241324
(d,i) : if return_distance == True
13251325
1326-
d : ndarray of shape X.shape[:-1] + k, dtype=double
1326+
d : ndarray of shape X.shape[:-1] + (k,), dtype=double
13271327
Each entry gives the list of distances to the neighbors of the
13281328
corresponding point.
13291329
1330-
i : ndarray of shape X.shape[:-1] + k, dtype=int
1330+
i : ndarray of shape X.shape[:-1] + (k,), dtype=int
13311331
Each entry gives the list of indices of neighbors of the
13321332
corresponding point.
13331333
"""

0 commit comments

Comments
 (0)
0