GitHub version CRAN version downloads R-CMD-check codecov

biglasso: Extend Lasso Model Fitting to Big Data in R

biglasso extends lasso and elastic-net linear and logistic regression models for ultrahigh-dimensional, multi-gigabyte data sets that cannot be loaded into memory. It utilizes memory-mapped files to store the massive data on the disk and only read those into memory whenever necessary during model fitting. In addition, some advanced feature screening rules are proposed and implemented to accelerate the model fitting. To the best of our knowledge, biglasso is the only R package that enables users to fit lasso models with data sets that are larger than available RAM, enabling big data analysis on an ordinary laptop.

For more documentation, visit the biglasso website.

Installation

To install the latest stable release version from CRAN:

install.packages("biglasso")

To install the latest development version from GitHub:

remotes::install_github("pbreheny/biglasso")

Features

  1. It utilizes memory-mapped files to store the massive data on the disk, only loading data into memory when necessary during model fitting. Consequently, it’s able to seamlessly handle out-of-core computation.
  2. It is built upon pathwise coordinate descent algorithm with warm start, active set cycling, and feature screening strategies, which has been proven to be one of fastest lasso solvers.
  3. We develop new, adaptive feature screening rules that outperform state-of-the-art screening rules such as the sequential strong rule (SSR) and the sequential EDPP rule (SEDPP) with additional 1.5x to 4x speedup.
  4. The implementation is designed to be as memory-efficient as possible by eliminating extra copies of the data created by other R packages, making biglasso at least 2x more memory-efficient than glmnet.
  5. The underlying computation is implemented in C++, and parallel computing with OpenMP is also supported.

Benchmarks

biglasso is substantially more memory-efficient than glmnet, ncvreg, and picasso on both simulated and real data sets, is competitive with or faster than them on computing time, and can fit lasso models on data too large to fit in RAM at all. See here for benchmarks.

Reference

Report bugs

Open an issue or send an email to Patrick Breheny at patrick-breheny@uiowa.edu.