Skip to content

Commit f93ff1b

Browse files
Siniadeadrinjalali
andauthored
DOC added links to plot_gradient_boosting_regularization.py and plot_gradient_boosting_categorical.py (scikit-learn#30749)
Co-authored-by: adrinjalali <[email protected]>
1 parent 47ab98c commit f93ff1b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sklearn/ensemble/_gb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ class GradientBoostingClassifier(ClassifierMixin, BaseGradientBoosting):
11521152
There is a trade-off between learning_rate and n_estimators.
11531153
Values must be in the range `[0.0, inf)`.
11541154
1155+
For an example of the effects of this parameter and its interaction with
1156+
``subsample``, see
1157+
:ref:`sphx_glr_auto_examples_ensemble_plot_gradient_boosting_regularization.py`.
1158+
11551159
n_estimators : int, default=100
11561160
The number of boosting stages to perform. Gradient boosting
11571161
is fairly robust to over-fitting so a large number usually

sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,8 @@ class HistGradientBoostingRegressor(RegressorMixin, BaseHistGradientBoosting):
15121512
converted to floating point numbers. This means that categorical values
15131513
of 1.0 and 1 are treated as the same category.
15141514
1515-
Read more in the :ref:`User Guide <categorical_support_gbdt>`.
1515+
Read more in the :ref:`User Guide <categorical_support_gbdt>` and
1516+
:ref:`sphx_glr_auto_examples_ensemble_plot_gradient_boosting_categorical.py`.
15161517
15171518
.. versionadded:: 0.24
15181519

0 commit comments

Comments
 (0)