rb-libsvm

rb-libsvm provides Ruby bindings for the LIBSVM machine learning library.

github.com/febeling/rb-libsvm
rb-libsvm homepage screenshot

About rb-libsvm

rb-libsvm is a Ruby package that provides bindings to LIBSVM, a free implementation of support vector machines (SVM), a machine learning and classification algorithm. The gem lets Ruby code define training problems, train an SVM model, and predict labels for new examples. The page credits LIBSVM to Chih-Chung Chang and Chih-Jen Lin of National Taiwan University. The README states that the gem is released under the MIT license and that LIBSVM is bundled with its own license.

The package does not include LIBSVM's command line tools for preprocessing training data and finding parameters. Users who need those tools must install the original LIBSVM package. Building the gem from source on OS X requires Xcode and its command line tools. The README also notes that Bundler users must specify the gem with require: 'libsvm' because the loadable name differs from the gem name.

Key features

  • Ruby bindings for the LIBSVM support vector machine library
  • Training SVM models from Ruby with Libsvm::Model.train
  • Predicting labels for new examples with a trained model
  • Bundles LIBSVM version 3.24 with no external dependencies
  • Installable as a Ruby gem with gem install rb-libsvm
Best for: Ruby developers who want to train and use support vector machine classifiers within Ruby applications.
Good for
  • LIBSVM is bundled with the package, and the README lists no dependencies
  • The gem is released under the MIT license, as stated in the README
Watch out for
  • LIBSVM's command line tools for preprocessing and parameter search are not included
  • Building from source on OS X requires Xcode and its command line tools

rb-libsvm at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

rb-libsvm alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Programming Languages

Well-known listings from the same topic.

All 66

rb-libsvm FAQ

Does the gem include LIBSVM's command line tools?
No. The README says these tools are not included in the gem, and users who need them should install the original LIBSVM package.
How do I load the gem with Bundler?
Specify it in the Gemfile as gem 'rb-libsvm', require: 'libsvm', because the loadable name libsvm differs from the gem name.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing