From 9c26736b6bea0f36b91ad83c7c7fded6524af656 Mon Sep 17 00:00:00 2001 From: kevad Date: Sat, 12 Oct 2019 13:40:55 +0200 Subject: [PATCH] DOC minor updates for atribute docs in GradientBoosting --- sklearn/ensemble/gradient_boosting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sklearn/ensemble/gradient_boosting.py b/sklearn/ensemble/gradient_boosting.py index 1f54b66f60c66..8c91a473a8572 100644 --- a/sklearn/ensemble/gradient_boosting.py +++ b/sklearn/ensemble/gradient_boosting.py @@ -2011,6 +2011,7 @@ class GradientBoostingClassifier(ClassifierMixin, BaseGradientBoosting): relative to the previous iteration. ``oob_improvement_[0]`` is the improvement in loss of the first stage over the ``init`` estimator. + Only available if ``subsample < 1.0`` train_score_ : array, shape (n_estimators,) The i-th score ``train_score_[i]`` is the deviance (= loss) of the @@ -2480,6 +2481,7 @@ class GradientBoostingRegressor(RegressorMixin, BaseGradientBoosting): relative to the previous iteration. ``oob_improvement_[0]`` is the improvement in loss of the first stage over the ``init`` estimator. + Only available if ``subsample < 1.0`` train_score_ : array, shape (n_estimators,) The i-th score ``train_score_[i]`` is the deviance (= loss) of the