Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. ML with Ruby
  3. liblinear-ruby

liblinear-ruby

MITC++

Ruby interface to LIBLINEAR for machine learning classification and regression tasks using SWIG bindings.

GitHubGitHub
82 stars7 forks0 contributors

Overview

Liblinear-Ruby provides a Ruby interface to LIBLINEAR, a popular library for large-scale linear classification and regression. It enables Ruby developers to leverage efficient machine learning algorithms for tasks like support vector classification and logistic regression directly within Ruby applications.

Key Features

  • LIBLINEAR Integration — Full Ruby bindings to LIBLINEAR 2.30 using SWIG for seamless interoperability.
  • Multiple Solver Types — Supports various solvers including L2-regularized logistic regression, support vector classification (primal/dual), and support vector regression.
  • Flexible Training Data — Accepts training data as arrays of arrays or arrays of hashes for feature representation.
  • Model Persistence — Save trained models to files and load them later for prediction without retraining.
  • Cross Validation — Built-in k-fold cross validation to evaluate model performance reliably.
  • Feature Weights Access — Retrieve feature weights from trained models to analyze feature importance.
  • Quiet/Verbose Modes — Control output verbosity during training for cleaner logs in production.

Philosophy

Liblinear-Ruby aims to make LIBLINEAR's powerful linear classification and regression algorithms accessible to Ruby developers with a clean, idiomatic Ruby API while maintaining full compatibility with the underlying C++ library.

Quick Stats

Stars82
Forks7
Contributors0
Open Issues3
Last commit7 years ago
CreatedSince 2013

Tags

#data-science#classification#ruby-gem#support-vector-machines#rubyml#linear-models#ml#regression#ruby#machine-learning

Built With

S
SWIG
R
Ruby
l
liblinear

Included in

ML with Ruby2.2k
Auto-fetched 10 hours ago

Related Projects

liblinear-ruby-swigliblinear-ruby-swig

This is the Ruby interface to LIBLINEAR (much more efficient than LIBSVM for text classification and other large linear classifications)

Stars83
Forks11
Last commit3 years 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