8

I am trying to use SVM classifier in Weka. I downloaded weka-3-7-13 version. When i click on the classifier tab, SVM is not in the list.

How to use SVM in this tool? Please help me to overcome this problem.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
AnnRose
  • 81
  • 1
  • 1
  • 5

2 Answers2

15

In Weka (GUI) go to Tools -> PackageManager and install LibSVM/LibLinear (both are SVM).

One more implementation of SVM is 'SMO' which is in Classify -> Classifier -> Functions. (if not listed then install as mentioned above)

Alternatively you can use .jar files of these algorithms and use through your java code.

Arif
  • 179
  • 5
2

SVM classes are not integrated with the WEKA vanilla. you have to add LIBSVM library (jar file ) manually into your project to get SVM classifiers

Nipun Alahakoon
  • 2,772
  • 5
  • 27
  • 45
  • 1
    Thank you.. i try weka 3-6-10 . When i classify using libSVM there is an error " libsvm classes are not in classpath" . how to solve this ? – AnnRose Dec 28 '15 at 06:55
  • if you using eclipses copy the jar file to project folder and right click on the jar --> build path --> add to build path. if you find the answer is correct . please consider accept it for future viewers – Nipun Alahakoon Dec 28 '15 at 08:11