Skip to content

no0p/libsvmffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== 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.

About

lib svm 3 ruby ffi bindings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published