Skip to content

thierrymoudiki/glmnetforpython

Repository files navigation

Glmnet for python

PyPI PyPI - License Downloads Documentation

Install

Using pip

pip install glmnetforpython

From GitHub

pip install git+github.com/thierrymouidiki/glmnetforpython.git

What?

This is a python version of the popular glmnet library (scikit-learn style). Glmnet fits the entire lasso or elastic-net regularization path for linear regression, logistic and multinomial regression models, poisson regression and the cox model.

The underlying fortran codes are the same as the R version, and uses a cyclical path-wise coordinate descent algorithm as described in the papers linked below.

Currently, glmnet library methods for gaussian, multi-variate gaussian, binomial, multinomial, poisson and cox models are implemented for both normal and sparse matrices.

Additionally, cross-validation is also implemented for gaussian, multivariate gaussian, binomial, multinomial and poisson models. CV for cox models is yet to be implemented.

Usage

See:

References:

License:

This software is released under GNU General Public License v3.0 or later.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages