This is a maintained fork of civisanalytics/python-glmnet, which was archived in 2024. The original package on PyPI (glmnet) can no longer be installed with modern Python toolchains due to build system issues.
Changes from the original
This fork applies minimal fixes to restore installability:
Fixed invalid python_requires specifier (>=3.6.* → >=3.6)
Added pyproject.toml with proper build dependencies (setuptools<60, numpy<2) to support pip build isolation
No changes were made to the library code itself. All credit goes to the original authors at Civis Analytics.
Original repository: https://github.com/civisanalytics/python-glmnet (archived)
Fork repository: https://github.com/randrover/python-glmnet
License: GPLv2 (same as original)
Installation
pip install python-glmnet-fix
A Fortran compiler is required for building from source. For Mac users, brew install gcc will take care of this requirement.
Usage
The import name remains glmnet, same as the original:
from glmnet import LogitNet, ElasticNet
# Regularized Logistic Regression
m = LogitNet()
m = m.fit(x, y)
p = m.predict_proba(x)
# Regularized Linear Regression
m = ElasticNet()
m = m.fit(x, y)
p = m.predict(x)
The API follows the conventions of Scikit-Learn, so it is expected to work with tools from that ecosystem. Both models accept dense or sparse arrays.
Dependencies
numpy
scikit-learn
scipy
Metadata
Release files for python-glmnet-fix 2.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_glmnet_fix-2.2.3.tar.gz | 89.0 kB | Without provenance | Details for python_glmnet_fix-2.2.3.tar.gz |
Release files / python_glmnet_fix-2.2.3.tar.gz
| Download URL | python_glmnet_fix-2.2.3.tar.gz |
|---|---|
| Size | 89.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cabce56b39dc04462aab4726e6498c20266f8f2bf5e0264a5f470cd493b9d5f0
|
|
BLAKE2b-256 checksum How to use checksums |
cde322f7d5400a2e64214b2843f6bcdc708d5fd7d66fcf93c81088bae39161e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for python-glmnet-fix 2.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.