Thursday, January 13, 2011

Use of LibSVM in Python

=== Use of LibSVM in Python ===

+ In the downloaded folder: README:
    For windows, the shared library libsvm.dll is ready in the directory `..\windows'. You can also copy it to the system directory (e.g.,`C:\WINDOWS\system32\' for Windows XP).

+ In the os, that we can access the c-drive, we can copy the <libsvm.dll> to the location: `C:\WINDOWS\system32\'
   In the os, where we do not have the access:
       -> Copy the <libsvm.dll> to your selected location, e.g. 'C:\TEMP\PythonLib\libsvm-3.0\python'
       -> Change the Line 14 in <svm.py>, which is:     libsvm = CDLL('../windows/libsvm.dll')
                   to : libsvm = CDLL('C:/TEMP/PythonLib/libsvm-3.0/python/libsvm.dll')
       -> now you can run the program

No comments:

Post a Comment