

.. _example_ensemble_plot_gradient_boosting_regression.py:


============================
Gradient Boosting regression
============================

Demonstrate Gradient Boosting on the Boston housing dataset.

This example fits a Gradient Boosting model with least squares loss and
500 regression trees of depth 4.


**Python source code:** :download:`plot_gradient_boosting_regression.py <plot_gradient_boosting_regression.py>`

.. literalinclude:: plot_gradient_boosting_regression.py
    :lines: 11-
    