8000 clarify uniform weight in forest docstrings · scikit-learn/scikit-learn@bef26bd · GitHub
[go: up one dir, main page]

Skip to content

Commit bef26bd

Browse files
committed
clarify uniform weight in forest docstrings
1 parent e76ce11 commit bef26bd

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

sklearn/ensemble/forest.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,9 @@ class RandomForestClassifier(ForestClassifier):
796796
797797
min_weight_fraction_leaf : float, optional (default=0.)
798798
The minimum weighted fraction of the sum total of weights (of all
799-
the input samples) required to be at a leaf node.
799+
the input samples) required to be at a leaf node. Samples have
800+
equal weight when sample_weight is not provided, but
801+
min_samples_leaf is more efficient.
800802
801803
max_leaf_nodes : int or None, optional (default=None)
802804
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1001,7 +1003,9 @@ class RandomForestRegressor(ForestRegressor):
10011003
10021004
min_weight_fraction_leaf : float, optional (default=0.)
10031005
The minimum weighted fraction of the sum total of weights (of all
1004-
the input samples) required to be at a leaf node.
1006+
the input samples) required to be at a leaf node. Samples have
1007+
equal weight when sample_weight is not provided, but
1008+
min_samples_leaf is more efficient.
10051009
10061010
max_leaf_nodes : int or None, optional (default=None)
10071011
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1166,7 +1170,9 @@ class ExtraTreesClassifier(ForestClassifier):
11661170
11671171
min_weight_fraction_leaf : float, optional (default=0.)
11681172
The minimum weighted fraction of the sum total of weights (of all
1169-
the input samples) required to be at a leaf node.
1173+
the input samples) required to be at a leaf node. Samples have
1174+
equal weight when sample_weight is not provided, but
1175+
min_samples_leaf is more efficient.
11701176
11711177
max_leaf_nodes : int or None, optional (default=None)
11721178
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1370,7 +1376,9 @@ class ExtraTreesRegressor(ForestRegressor):
13701376
13711377
min_weight_fraction_leaf : float, optional (default=0.)
13721378
The minimum weighted fraction of the sum total of weights (of all
1373-
the input samples) required to be at a leaf node.
1379+
the input samples) required to be at a leaf node. Samples have
1380+
equal weight when sample_weight is not provided, but
1381+
min_samples_leaf is more efficient.
13741382
13751383
max_leaf_nodes : int or None, optional (default=None)
13761384
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1521,7 +1529,9 @@ class RandomTreesEmbedding(BaseForest):
15211529
15221530
min_weight_fraction_leaf : float, optional (default=0.)
15231531
The minimum weighted fraction of the sum total of weights (of all
1524-
the input samples) required to be at a leaf node.
1532+
the input samples) required to be at a leaf node. Samples have
1533+
equal weight when sample_weight is not provided, but
1534+
min_samples_leaf is more efficient.
15251535
15261536
max_leaf_nodes : int or None, optional (default=None)
15271537
Grow trees with ``max_leaf_nodes`` in best-first fashion.

0 commit comments

Comments
 (0)
0