Gradient Boosting regression
This example demonstrates Gradient Boosting to produce a predictive
model from an ensemble of weak predictive models. Gradient boosting can be used
for regression and classification problems. Here, we will train a model to
tackle a diabetes regression task. We will obtain the results from
GradientBoostingRegressor with least squares loss
and 500 regression trees of depth 4.
Note: For larger datasets (n_samples >= 10000), please refer to
HistGradientBoostingRegressor. See
Features in Histogram Gradient Boosting Trees for an example
showcasing some other advantages of
HistGradientBoostingRegressor.

