Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Machine Learning
  3. GLMNet

GLMNet

NOASSERTIONJuliav0.7.4

A Julia wrapper for fitting Lasso and ElasticNet GLM models using the glmnet Fortran library.

GitHubGitHub
105 stars31 forks0 contributors

What is GLMNet?

GLMNet.jl is a Julia package that wraps the glmnet Fortran library to fit Lasso and ElasticNet regularization paths for generalized linear models. It solves problems in high-dimensional statistics by performing feature selection and regularization across linear, logistic, multinomial, Poisson, and Cox models. The package computes entire solution paths efficiently, allowing users to analyze how coefficients change with regularization strength.

Target Audience

Data scientists, statisticians, and researchers working in Julia who need robust regularization methods for regression and classification tasks, particularly those dealing with high-dimensional data or seeking interpretable models through feature selection.

Value Proposition

Developers choose GLMNet.jl for its direct interface to the battle-tested glmnet Fortran implementation, ensuring numerical stability and performance. It provides a comprehensive set of GLM families and cross-validation tools within Julia's ecosystem, making it a reliable choice for statistical modeling without sacrificing speed.

Overview

Julia wrapper for fitting Lasso/ElasticNet GLM models using glmnet

Use Cases

Best For

  • Fitting regularized linear regression models with Lasso or ElasticNet penalties
  • Performing feature selection in high-dimensional datasets
  • Building logistic regression models with automatic λ tuning via cross-validation
  • Analyzing survival data with Cox proportional hazards models and regularization
  • Multinomial classification tasks where predictor sparsity is desired
  • Educational or research projects requiring reproducible glmnet results in Julia

Not Ideal For

  • Projects requiring deep learning or non-linear models beyond generalized linear models
  • Teams preferring pure Julia implementations without external Fortran dependencies
  • Applications needing real-time or online learning with streaming data updates
  • Environments where R's glmnet or Python's scikit-learn are already established and preferred

Pros & Cons

Pros

Efficient Fortran Backend

Wraps the optimized glmnet Fortran library, ensuring numerical stability and reliable performance for large-scale problems, as highlighted in the README.

Versatile Model Support

Supports multiple GLM families including linear, logistic, multinomial, Poisson, and Cox models, with built-in cross-validation for automatic λ tuning via glmnetcv.

Flexible Configuration

Allows fine-tuning with options like weights, penalty factors, constraints, and standardization, providing control over model fitting and regularization paths.

Julia Ecosystem Integration

Seamlessly integrates with Julia packages like Plots and DataFrames for visualization and data manipulation, as shown in the README examples.

Cons

External Fortran Dependency

Relies on Fortran code, which can complicate installation, debugging, and portability compared to pure Julia alternatives, potentially limiting transparency.

Performance Trade-offs

The README notes that Lasso.jl often achieves better performance, indicating this wrapper may not be the fastest option in all cases within Julia.

Documentation Gaps

The README points to external files like readmeExamples.jl for exact reproduction, suggesting documentation might be sparse or require additional effort to follow.

Limited Algorithm Scope

Only implements Lasso and ElasticNet paths via glmnet, lacking support for newer regularization methods or variants beyond the Fortran library's capabilities.

Frequently Asked Questions

Quick Stats

Stars105
Forks31
Contributors0
Open Issues10
Last commit1 month ago
CreatedSince 2013

Tags

#julia#feature-selection#statistics#classification#glm#lasso#regression#machine-learning#regularization

Built With

J
Julia
F
Fortran

Included in

Machine Learning72.2k
Auto-fetched 20 hours ago

Related Projects

PyTorch - Tensors and Dynamic neural networks in Python with strong GPU accelerationPyTorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Stars101,899
Forks28,473
Last commit18 hours ago
keraskeras

Deep Learning for humans

Stars64,175
Forks19,744
Last commit1 day ago
streamlitstreamlit

Streamlit — A faster way to build and share data apps.

Stars45,326
Forks4,331
Last commit23 hours ago
gradiogradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!

Stars43,191
Forks3,557
Last commit21 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub