8000 update docstrings for all classes · scikit-learn/scikit-learn@209f967 · GitHub
[go: up one dir, main page]

Skip to content

Commit 209f967

Browse files
committed
update docstrings for all classes
1 parent bef26bd commit 209f967

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

sklearn/ensemble/forest.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ class RandomForestClassifier(ForestClassifier):
797797
min_weight_fraction_leaf : float, optional (default=0.)
798798
The minimum weighted fraction of the sum total of weights (of all
799799
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.
800+
equal weight when sample_weight is not provided.
802801
803802
max_leaf_nodes : int or None, optional (default=None)
804803
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1004,8 +1003,7 @@ class RandomForestRegressor(ForestRegressor):
10041003
min_weight_fraction_leaf : float, optional (default=0.)
10051004
The minimum weighted fraction of the sum total of weights (of all
10061005
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.
1006+
equal weight when sample_weight is not provided.
10091007
10101008
max_leaf_nodes : int or None, optional (default=None)
10111009
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1171,8 +1169,7 @@ class ExtraTreesClassifier(ForestClassifier):
11711169
min_weight_fraction_leaf : float, optional (default=0.)
11721170
The minimum weighted fraction of the sum total of weights (of all
11731171
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.
1172+
equal weight when sample_weight is not provided.
11761173
11771174
max_leaf_nodes : int or None, optional (default=None)
11781175
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1377,8 +1374,7 @@ class ExtraTreesRegressor(ForestRegressor):
13771374
min_weight_fraction_leaf : float, optional (default=0.)
13781375
The minimum weighted fraction of the sum total of weights (of all
13791376
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.
1377+
equal weight when sample_weight is not provided.
13821378
13831379
max_leaf_nodes : int or None, optional (default=None)
13841380
Grow trees with ``max_leaf_nodes`` in best-first fashion.
@@ -1530,8 +1526,7 @@ class RandomTreesEmbedding(BaseForest):
15301526
min_weight_fraction_leaf : float, optional (default=0.)
15311527
The minimum weighted fraction of the sum total of weights (of all
15321528
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.
1529+
equal weight when sample_weight is not provided.
15351530
15361531
max_leaf_nodes : int or None, optional (default=None)
15371532
Grow trees with ``max_leaf_nodes`` in best-first fashion.

sklearn/ensemble/gradient_boosting.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,8 @@ class GradientBoostingClassifier(BaseGradientBoosting, ClassifierMixin):
13251325
13261326
min_weight_fraction_leaf : float, optional (default=0.)
13271327
The minimum weighted fraction of the sum total of weights (of all
1328-
the input samples) required to be at a leaf node.
1328+
the input samples) required to be at a leaf node. Samples have
1329+
equal weight when sample_weight is not provided.
13291330
13301331
subsample : float, optional (default=1.0)
13311332
The fraction of samples to be used for fitting the individual base
@@ -1687,7 +1688,8 @@ class GradientBoostingRegressor(BaseGradientBoosting, RegressorMixin):
16871688
16881689
min_weight_fraction_leaf : float, optional (default=0.)
16891690< E8FA /td>
The minimum weighted fraction of the sum total of weights (of all
1690-
the input samples) required to be at a leaf node.
1691+
the input samples) required to be at a leaf node. Samples have
1692+
equal weight when sample_weight is not provided.
16911693
16921694
subsample : float, optional (default=1.0)
16931695
The fraction of samples to be used for fitting the individual base

sklearn/tree/tree.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ class DecisionTreeClassifier(BaseDecisionTree, ClassifierMixin):
586586
587587
min_weight_fraction_leaf : float, optional (default=0.)
588588
The minimum weighted fraction of the sum total of weights (of all
589-
the input samples) required to be at a leaf node.
589+
the input samples) required to be at a leaf node. Samples have
590+
equal weight when sample_weight is not provided.
590591
591592
max_leaf_nodes : int or None, optional (default=None)
592593
Grow a tree with ``max_leaf_nodes`` in best-first fashion.
@@ -850,7 +851,8 @@ class DecisionTreeRegressor(BaseDecisionTree, RegressorMixin):
850851
851852
min_weight_fraction_leaf : float, optional (default=0.)
852853
The minimum weighted fraction of the sum total of weights (of all
853-
the input samples) required to be at a leaf node.
854+
the input samples) required to be at a leaf node. Samples have
855+
equal weight when sample_weight is not provided.
854856
855857
max_leaf_nodes : int or None, optional (default=None)
856858
Grow a tree with ``max_leaf_nodes`` in best-first fashion.

0 commit comments

Comments
 (0)
0