Skip to content

Commit 7401ddc

Browse files
committed
Try to fix docstring
Signed-off-by: Adam Li <adam2392@gmail.com>
1 parent 3f5cb65 commit 7401ddc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sklearn/tree/_classes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,11 @@ def get_leaf_node_samples(self, X, check_input=True):
607607
608608
Returns
609609
-------
610-
leaf_nodes_samples : a list of array-like of shape
611-
(n_leaf_node_samples, n_outputs)
610+
leaf_nodes_samples : a list of array-like
612611
Each sample is represented by the indices of the training samples that
613612
reached the leaf node. The ``n_leaf_node_samples`` may vary between
614613
samples, since the number of samples that fall in a leaf node is
615-
variable.
614+
variable. Each array has shape (n_leaf_node_samples, n_outputs).
616615
"""
617616
if not self.store_leaf_values:
618617
raise RuntimeError(

0 commit comments

Comments
 (0)