We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e2913 commit 43aa3efCopy full SHA for 43aa3ef
sklearn/ensemble/_forest.py
@@ -817,12 +817,11 @@ def get_leaf_node_samples(self, X):
817
818
Returns
819
-------
820
- leaf_node_samples : a list of array-like of shape
821
- (n_leaf_node_samples, n_outputs)
+ leaf_node_samples : a list of array-like
822
Each sample is represented by the indices of the training samples that
823
reached the leaf node. The ``n_leaf_node_samples`` may vary between
824
samples, since the number of samples that fall in a leaf node is
825
- variable.
+ variable. Each array-like has shape (n_leaf_node_samples, n_outputs).
826
"""
827
check_is_fitted(self)
828
# Check data
0 commit comments