glmnet: lasso and elastic-net regularized models
| (require glmnet) | package: glmnet |
glmnet is a library for building linear statistical models in Racket. It is a port of the reference implementation by Friedman, Hastie, Tibshirani et al., the R package glmnet, and fits lasso, ridge and elastic-net regularized models in six families:
Gaussian —
ordinary least squares, ridge, lasso and elastic net for a numeric response. Binomial and multinomial —
two-class and K-class logistic classifiers. Cox —
proportional-hazards survival models. Poisson —
counts, with a log link. Multi-response Gaussian —
several numeric responses fitted jointly under a grouped lasso.
This manual has two parts: the User guide works through the library by example, and the Reference documents the public API.
License. This package is distributed under GPL-2.0-or-later.
Acknowledgements. The solver and its algorithms are the work of Jerome Friedman, Trevor Hastie, Rob Tibshirani and the other authors of the R glmnet package, whose vignettes shaped this manual.
AI Disclosure. This package and its documentation were created with the use of AI tools.