Skip to content
lib svm 3 ruby ffi bindings
Ruby Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
LICENSE
README
build.sh
libsvmffi.gemspec

README

== Introduction

This is alpha grade software.

Under development.  But simple use cases may be worth checking out.

http://www.csie.ntu.edu.tw/~cjlin/libsvm/

libsvm version 310


== Installation

1.  download (see url above)
2.  make lib
3.  place .so in load path

gem install libsvmffi

== Usage

#> require 'libsvmffi'

#> m = Libsvmffi::Model.new
#> m.add :good, {:height => 1, :width => 1, :length => 1}
#> m.add :bad, {:height => 10, :width => 3, :length => 6}
#> m.train

#> m.classify({:height => 1, :width => 1.1, :length => 1})
#=> :good


== Source Code
 
https://github.com/bdigital/libsvmffi

Assistance developing is welcome.
Something went wrong with that request. Please try again.