LibSVM is a good Support Vector Machine (SVM) implementation which works well with Python. The current release of LibSVM is version 3.0 (released September 2010). Download the zip file from the LibSVM website. Unzip the file (a directory "libsvm-3.0" will be created). In a terminal window go to this directory and type "make".
Then go to the "python" directory and do the same:
This should be all you need to do. To test your installation, start python from the command line and try
(You might have to change the line libsvm = CDLL('../libsvm.so.2') in svm.py to contain the location of libsvm if you have problems importing svm from other directories on your computer.)
The authors of LibSVM wrote a practical guide for using LivSVM. This is a good starting point if you are new to SVM.
$ cd libsvm-3.0
$ make
Then go to the "python" directory and do the same:
$ cd python/
$ make
This should be all you need to do. To test your installation, start python from the command line and try
>>> import svm
(You might have to change the line libsvm = CDLL('../libsvm.so.2') in svm.py to contain the location of libsvm if you have problems importing svm from other directories on your computer.)
The authors of LibSVM wrote a practical guide for using LivSVM. This is a good starting point if you are new to SVM.