Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

lib svm 3 ruby ffi bindings

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 build.sh
Octocat-spinner-32 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.