Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An example of using LibSVM in java

Tags:

java

svm

libsvm

I am considering using libsvm. Currently, I have transformed my feature vectors to SVM feature vectors format. I am using LibSVM inside a project I will need to somehow use it within my app. The problem is that at the moment all examples available use the command line to provide input to the LibSVM. I don want this. Can you please give me an example of how I can use it within my code (no calls to the command prompt and no Weka). Thanks

like image 380
Hossein Avatar asked Jan 20 '12 09:01

Hossein


2 Answers

There are examples in the distribution source code https://github.com/arnaudsj/libsvm/tree/master/java

like image 170
clyfe Avatar answered Sep 27 '22 16:09

clyfe


The applet doesn't use command-line input. Check libsvm-3.11.tar.gz\libsvm-3.11.tar\libsvm-3.11\java

like image 22
A T Avatar answered Sep 27 '22 16:09

A T