Firls
Norm Constrained Generalised Linear Model using numpy, numba and scipy.
Install / Use
/learn @jcrichard/FirlsREADME
firls: !!!UNDER DEVELOPMENT!!!
Python implementation of Generalised Linear Model (GLM) using numpy, numba and scipy.
FIRLS is a package for solving sparse and dense penalised Generalised Linear Model. It is fully written in python. FIRLS includes these families with their natural link:
- Gaussian | identity
- Poisson | log
- Negative binomial | log
- Binomial | log
- Bernoulli | log
For each family norm 1 and norm 2 penalty can be added.
Sparse matrix
The library support solving large sparse problems. Currently the norm 1 is not supported. A sparse version of the cyclical coordinate descent algorithm will come later.
Scikit-learn API
The package subclass BaseEstimator and LinearClassifierMixin and is usable with scikit-learn.
Dependencies
There is three main dependencies: numpy, scipy and numba. To use the scikit-learn API you will need to install it!
Installation
just do:
pip install git+https://github.com/jcrichard/firls.git
References
Friedman, J., Hastie, T. and Tibshirani, R. (2010) Regularization Paths for Generalized Linear Models via Coordinate Descent, Journal of Statistics Software 33(1), pp. 1-22.
Hardin, J.W. (2018), Generalized Linear Models and Extensions: Fourth Edition, Stata Press.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
