Skip to content

Tools for fitting a generalized linear model with a L2 or difference penalty

License

Notifications You must be signed in to change notification settings

Eden-Kramer-Lab/regularized_glm

Repository files navigation

PR Test

regularized_glm

A simple python package for fitting L2- and smoothing-penalized generalized linear models.

Built primarily because the statsmodels GLM fit_regularized method is built to do elastic net (combination of L1 and L2 penalities), but if you just want to do an L2 or a smoothing penalty (like in generalized additive models), using a penalized iteratively reweighted least squares (p-IRLS) is much faster.

Installation

pip install regularized_glm

OR

conda install -c edeno regularized_glm

Other packages

References

Wood, S. (2006). Generalized additive models: an introduction with R (CRC press).

About

Tools for fitting a generalized linear model with a L2 or difference penalty

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages