.. _example_glm_plot_lasso_coordinate_descent_path.py:


=====================
Lasso and Elastic Net
=====================

Lasso and elastic net (L1 and L2 penalisation) implemented using a
coordinate descent.


.. image:: images/plot_lasso_coordinate_descent_path.png
    :align: center

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

.. literalinclude:: plot_lasso_coordinate_descent_path.py
    :lines: 9-