Package: glmfsa 1.0.1

Adrian Barbu

glmfsa: Feature Selection with Annealing for Sparse Generalized Linear Models

Fits sparse generalized linear models under an exact cardinality constraint using Feature Selection with Annealing (FSA), the method of Barbu, She, Ding and Gramajo (2017) <doi:10.1109/TPAMI.2016.2544315>. Rather than inducing sparsity through an L1 (lasso-type) penalty, FSA alternates a gradient step on the loss with a step that removes the lowest-magnitude coefficients according to an annealing schedule, so the user specifies the number of variables directly and the surviving coefficients carry no shrinkage bias. The working design matrix physically shrinks as iterations proceed, which makes the cost of a fit fall over time and the method well suited to problems with very many features. Gaussian, binomial, Poisson, multinomial, multi-response Gaussian and Cox proportional hazards families are supported, with robust Lorenz and smoothed support vector machine (SVM) losses available for classification with noisy labels. Dense and sparse design matrices are both handled, and the interface mirrors that of the 'glmnet' package.

Authors:Adrian Barbu [aut, cre, cph], Yiyuan She [aut], Liangjing Ding [ctb], Gary Gramajo [ctb]

glmfsa_1.0.1.tar.gz
glmfsa_1.0.1.zip(r-4.7-x86_64)glmfsa_1.0.1.zip(r-4.7-arm64)glmfsa_1.0.1.zip(r-4.6-x86_64)glmfsa_1.0.1.zip(r-4.6-arm64)
glmfsa_1.0.1.tar.gz(r-4.7-arm64)glmfsa_1.0.1.tar.gz(r-4.7-x86_64)glmfsa_1.0.1.tar.gz(r-4.6-arm64)glmfsa_1.0.1.tar.gz(r-4.6-x86_64)
glmfsa_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
glmfsa/json (API)

# Install 'glmfsa' in R:
install.packages('glmfsa', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/barbua/fsa/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • dexter - Dexter: text categorization with 20,000 features and 300 observations

On CRAN:

Conda:

openblascpp

3.00 score 6 exports 4 dependencies

Last updated from:81c50becfa. Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK140
linux-devel-x86_64OK136
source / vignettesOK241
linux-release-arm64OK116
linux-release-x86_64OK129
windows-devel-arm64OK348
windows-devel-x86_64OK202
windows-release-arm64OK211
windows-release-x86_64OK151
wasm-releaseOK110

Exports:cv.fsafetch_gisettefsafsa_lossesplot_scheduleplot_trace

Dependencies:latticeMatrixRcppRcppArmadillo

Getting started with glmfsa
The idea in one paragraph | A first fit | Watching the algorithm run | A whole path of model sizes | Choosing k | The tuning parameters | You usually do not need to touch eta | Families | Robust classification losses | The ridge prior, and when it stops being optional | Sparse designs | Coming from glmnet | Reference

Last update: 2026-11-03
Started: 2026-11-03

glmfsa and glmnet
Selection accuracy at a matched model size | Coefficient bias | Mislabeled data | Speed | Real data | Where glmnet is the better tool | Reference

Last update: 2026-11-03
Started: 2026-11-03