Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Fast algorithm with dual extrapolation for sparse problems

Project description


image0 image1

Fast algorithm to solve Lasso-like problems with dual extrapolation. Currently, the package handles the following problems: Lasso, Sparse Logistic regression, Group Lasso and Multitask Lasso. The estimators follow the scikit-learn API, come with automated cross-validation, and support sparse and dense data with feature centering and normalization. The solvers used allow for solving large scale problems with millions of features.


Please visit for the latest version of the documentation.

Install the released version

Assuming you have a working Python environment, e.g. with Anaconda you can install celer with pip.

From a console or terminal install celer with pip:

pip install -U celer

Install and work with the development version

From a console or terminal clone the repository and install Celer:

git clone
cd celer/
pip install -e .

To build the documentation you will need to run:

pip install -U sphinx_gallery sphinx_bootstrap_theme
cd doc/
make html

Demos & Examples

In the example section of the documentation, you will find numerous examples on real life datasets, timing comparison with other estimators, easy and fast ways to perform cross validation, etc.


All dependencies are in the ./requirements.txt file.


If you use this code, please cite:

  title =    {Celer: a Fast Solver for the Lasso with Dual Extrapolation},
  author =   {Massias, Mathurin and Gramfort, Alexandre and Salmon, Joseph},
  booktitle =        {Proceedings of the 35th International Conference on Machine Learning},
  pages =    {3321--3330},
  year =     {2018},
  volume =   {80},

title={Dual Extrapolation for Sparse Generalized Linear Models},
author={Massias, Mathurin and Vaiter, Samuel and Gramfort, Alexandre and Salmon, Joseph},
journal={arXiv preprint arXiv:1907.05830},

ArXiv links:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for celer, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size celer-0.5.1.tar.gz (44.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page