Skip to content

Commit 29dddc7

Browse files
committed
DOC: better documentation tree.apply
1 parent 6ea24c7 commit 29dddc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/tree/tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def apply(self, X):
386386
X_leaves : array_like, shape = [n_samples,]
387387
For each datapoint x in X, return the index of the leaf x
388388
ends up in. Leaves are numbered within
389-
``[0;self.tree_.node_count)``.
389+
``[0; self.tree_.node_count)``, possibly with gaps in the
390+
numbering.
390391
"""
391392
if self.tree_ is None:
392393
raise NotFittedError("Estimator not fitted, "

0 commit comments

Comments
 (0)