Install SVM-light for R

SVMlight is an implementation of the Support Vector Machine providing methods for efficient estimation methods for both error rate and precision/recall. SVMlight exploits that the results of most leave-one-outs (often more than 99%) are predetermined and need not be computed. Further more it can also train SVMs with cost models. Many tasks have the property of sparse instance vectors. This implementation makes use of this property which leads to a very compact and efficient representation.

The R package klaR makes the implementation available with almost the same interface as other common packages like e1071. For klaR to work svm-light needs to be installed separately.

The binaries need to be downloaded here and placed into the PATH of the user. Here for example the binaries are placed into the bin folder of the user.

Add last we need to add the svm_learn and svm_classify to the PATH of the user.

Running the example:

Further Readings

Leave a Reply

Your email address will not be published. Required fields are marked *