An example of using LibSVM in java

Hossein picture Hossein · Jan 20, 2012 · Viewed 17.5k times · Source

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

Answer

clyfe picture clyfe · Jan 20, 2012

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