.. _example_linear_model_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_1.png :align: center **Script output**:: Computing regularization path using the lasso... Computing regularization path using the elastic net... **Python source code:** :download:`plot_lasso_coordinate_descent_path.py ` .. literalinclude:: plot_lasso_coordinate_descent_path.py :lines: 9-