8000 DOC improve documentation of GradientBoosting.oob_improvement_ (#15204) · crankycoder/scikit-learn@a59562d · GitHub
[go: up one dir, main page]

Skip to content

Commit a59562d

Browse files
Kevadrth
authored andcommitted
DOC improve documentation of GradientBoosting.oob_improvement_ (scikit-learn#15204)
1 parent 150e82b commit a59562d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/ensemble/gradient_boosting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,7 @@ class GradientBoostingClassifier(ClassifierMixin, BaseGradientBoosting):
20112011
relative to the previous iteration.
20122012
``oob_improvement_[0]`` is the improvement in
20132013
loss of the first stage over the ``init`` estimator.
2014+
Only available if ``subsample < 1.0``
20142015
20152016
train_score_ : array, shape (n_estimators,)
20162017
The i-th score ``train_score_[i]`` is the deviance (= loss) of the
@@ -2480,6 +2481,7 @@ class GradientBoostingRegressor(RegressorMixin, BaseGradientBoosting):
24802481
relative to the previous iteration.
24812482
``oob_improvement_[0]`` is the improvement in
24822483
loss of the first stage over the ``init`` estimator.
2484+
Only available if ``subsample < 1.0``
24832485
24842486
train_score_ : array, shape (n_estimators,)
24852487
The i-th score ``train_score_[i]`` is the deviance (= loss) of the

0 commit comments

Comments
 (0)
0