glmnet: lasso and elastic-net regularized models
| (require glmnet) | package: glmnet |
These are Racket bindings to glmnet, the Friedman/Hastie/Tibshirani coordinate-descent solver for lasso and elastic-net regularized generalized linear models. The numerics come from the original, self-contained glmnet Fortran (vendored as "fortran/vendor/glmnet5.f90"); a small iso_c_binding shim exports a clean C ABI that this package binds to through Racket’s FFI.
The library is developed example-first: every model below ships as a
runnable literate program under "glmnet/examples/" that is also
woven into Examples. The four core models —
License. Because this package vendors and links the GPL-2.0 glmnet
Fortran, it is distributed under GPL-2.0-or-later —