Skip to main content

celer

build coverage License Downloads Downloads PyPI version

celer is a Python package that solves Lasso-like problems and provides estimators that follow the scikit-learn API. Thanks to a tailored implementation, celer provides a fast solver that tackles large-scale datasets with millions of features up to 100 times faster than scikit-learn.

Currently, the package handles the following problems:

Problem Support Weights Native cross-validation
Lasso ✓ ✓
ElasticNet ✓ ✓
Group Lasso ✓ ✓
Multitask Lasso ✕ ✓
Sparse Logistic regression ✕ ✕

If you are interested in other models, such as non convex penalties (SCAD, MCP), sparse group lasso, group logistic regression, Poisson regression, Tweedie regression, have a look at our companion package skglm

Cite

celer is licensed under the BSD 3-Clause. Hence, you are free to use it. If you do so, please cite:

@InProceedings{pmlr-v80-massias18a,
  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},
}

@article{massias2020dual,
  author  = {Mathurin Massias and Samuel Vaiter and Alexandre Gramfort and Joseph Salmon},
  title   = {Dual Extrapolation for Sparse GLMs},
  journal = {Journal of Machine Learning Research},
  year    = {2020},
  volume  = {21},
  number  = {234},
  pages   = {1-33},
  url     = {http://jmlr.org/papers/v21/19-587.html}
}

Why celer?

celer is specially designed to handle Lasso-like problems which makes it a fast solver of such problems. In particular, it comes with tools such as:

  • automated parallel cross-validation
  • support of sparse and dense data
  • optional feature centering and normalization
  • unpenalized intercept fitting

celer also provides easy-to-use estimators as it is designed under the scikit-learn API.

Get started

To get started, install celer via pip

pip install -U celer

On your python console, run the following commands to fit a Lasso estimator on a toy dataset.

>>> from celer import Lasso
>>> from celer.datasets import make_correlated_data
>>> X, y, _ = make_correlated_data(n_samples=100, n_features=1000)
>>> estimator = Lasso()
>>> estimator.fit(X, y)

This is just a starter example. Make sure to browse celer documentation to learn more about its features. To get familiar with celer API, you can also explore the gallery of examples which includes examples on real-life datasets as well as timing comparisons with other solvers.

Contribute to celer

celer is an open-source project and hence relies on community efforts to evolve. Your contribution is highly valuable and can come in three forms

  • bug report: you may encounter a bug while using celer. Don't hesitate to report it on the issue section.
  • feature request: you may want to extend/add new features to celer. You can use the issue section to make suggestions.
  • pull request: you may have fixed a bug, enhanced the documentation, ... you can submit a pull request and we will respond asap.

For the last mean of contribution, here are the steps to help you setup celer on your local machine:

  1. Fork the repository and afterwards run the following command to clone it on your local machine
git clone https://github.com/{YOUR_GITHUB_USERNAME}/celer.git
  1. cd to celer directory and install it in edit mode by running
cd celer
pip install -e .
  1. To run the gallery examples and build the documentation, run the following
cd doc
pip install -e .[doc]
make html

Further links

Metadata

Release files for celer 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for celer 0.7.4
File Size Uploaded
celer-0.7.4.tar.gz 47.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for celer 0.7.4
File
celer-0.7.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
celer-0.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
celer-0.7.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
celer-0.7.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
celer-0.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
celer-0.7.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
celer-0.7.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
celer-0.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
celer-0.7.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
celer-0.7.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
celer-0.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
celer-0.7.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 24.9 MB

Release files / celer-0.7.4.tar.gz

Download URL celer-0.7.4.tar.gz
Size 47.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2e3e65b5218eb2455155f3c54d2c6b33b486fd113b67fbe1f31723fe1ec14363
BLAKE2b-256 checksum
How to use checksums
decd094d08cf59158a7f180020778096b4b1b36cfa843218681134fc7112508d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp313-cp313-win_amd64.whl

Download URL celer-0.7.4-cp313-cp313-win_amd64.whl
Size 746.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
43e0c7111b69a545905e8e6bfa14caef5e0a9950e0336971f556b81c98a7eb03
BLAKE2b-256 checksum
How to use checksums
20ac333995e5edf7627eee93d1531e368cb2eb03977a3d8b0e2a1c3caa5d15cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL celer-0.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.7 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b06e1811481ef1b9b740cecd2c5dbe91931e8891a1adfd33c2f5317b9653ea0c
BLAKE2b-256 checksum
How to use checksums
3e51d460992bf50b2657bf525f855fdba91207eff09ae2f06cae70095b9bc4eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / celer-0.7.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL celer-0.7.4-cp313-cp313-macosx_11_0_arm64.whl
Size 813.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1c3acb08acc9e03b51ef98d4997fb20be7e627d2e49d4b6c00b5fa63ad401532
BLAKE2b-256 checksum
How to use checksums
86fec91f40a1969c3780408e55d0cf20e19f12d20281ce8e064aeed0a1aedfc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp312-cp312-win_amd64.whl

Download URL celer-0.7.4-cp312-cp312-win_amd64.whl
Size 747.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d87ba7fe9461b9a01c373a5f6cd0e058c690a168a6749b78ebdf7f81ca12f9e6
BLAKE2b-256 checksum
How to use checksums
0224f99dce9e5e8c8a11ceb16684603c6b6d79511e041ceb80c9c58de32cd6d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL celer-0.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.7 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cc6c07cff0a1e9934bbaca6b053a4e881c173aa0557cfe55b27a1d056a266e23
BLAKE2b-256 checksum
How to use checksums
45a037594a1c6f4f5e0f27b53f80cf3c76e3fda19ef34ce93708c6e413339294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / celer-0.7.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL celer-0.7.4-cp312-cp312-macosx_11_0_arm64.whl
Size 819.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2d91b3e7ba5e9753a70a63d994c8ace07154ad9ec5ac01ac59c15c44fb923f61
BLAKE2b-256 checksum
How to use checksums
a38cdc2946e87035e62094bfc6b4a0b9c169748658f214c1327deefa469f8e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp311-cp311-win_amd64.whl

Download URL celer-0.7.4-cp311-cp311-win_amd64.whl
Size 748.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a1f82760f897131b13f7c75e01b76ef2ff4f0579e6e814cb591f792cc5cad92d
BLAKE2b-256 checksum
How to use checksums
f9af778dc26c6622e75a59315f59ab21b4552ef3b4c35a93f52d22ef8106b024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL celer-0.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
038230f6f8ea6b32bd6beba0855f5d734ef3d36d9fd3b50cbfd55de8767e1916
BLAKE2b-256 checksum
How to use checksums
a43c49f1b53504a988ce9c67daf79ce09307d36fe34fba569d8bad904415b53e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / celer-0.7.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL celer-0.7.4-cp311-cp311-macosx_11_0_arm64.whl
Size 814.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e69c96c6c945ec8bf95d13d80a9611aebbe5295c1519847a41adba2ab0cb10c9
BLAKE2b-256 checksum
How to use checksums
e2ecc63b192bfde0798741c4c173ee76f2c87b1f01ace8659bdd3406c3c144dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp310-cp310-win_amd64.whl

Download URL celer-0.7.4-cp310-cp310-win_amd64.whl
Size 746.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a1c5cf967872fb67ee83232fa6935743adf03a6d103746d045ca5c7e45f267d4
BLAKE2b-256 checksum
How to use checksums
2a786d25291f12fe6c5dbc648b7e06b7d553bfe43eb13ebe392e5b3f36b11359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / celer-0.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL celer-0.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d3fd8882c3c4861f21a1597379dcf97a830e40aa51d8e0ea01b09ab564dd647e
BLAKE2b-256 checksum
How to use checksums
8205dee9b0397967648ed590ecc1d2b6685c51677d38ce55a199a911a0e324e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / celer-0.7.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL celer-0.7.4-cp310-cp310-macosx_11_0_arm64.whl
Size 815.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0331c865bed153e6da5111797b2c10c1b6c6746610a412e45dac5c3bfa93e9e8
BLAKE2b-256 checksum
How to use checksums
8658f9cc62dac0de3ed8ad74e928ecbef4ab9d2d357a290b2252b975d216312e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.7.4 This release

13 release files

0.7.3

10 release files

0.7.2

19 release files

0.7.1

5 release files

0.7

5 release files

0.6.1

1 release file

0.6

1 release file

0.5.1

1 release file

0.4

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page