.. _example_glm_lasso_dense_vs_sparse_data.py: ============================== Lasso on dense and sparse data ============================== We show that glm.Lasso and glm.sparse.Lasso provide the same results and that in the case of sparse data glm.sparse.Lasso improves the speed. **Python source code:** :download:`lasso_dense_vs_sparse_data.py ` .. literalinclude:: lasso_dense_vs_sparse_data.py :lines: 11-