| Navigation: | [tom's page] [Joachim's SVMlight Home] [mexsvm] |
MEX Interface to MATLAB
Download modified SVMlight code for the MEX interface. Code is based on SVMlight v6.01 (modified July 6, 2005).
Source / Patch - need SVM-Lite code
Pre-Compiled Binaries
* Both of the Windows packages include a crude memory manager that tracks allocated blocks using a hash-table. With Windows, calling free() on a pointer more than onece would cause the library to abort and MATLAB would catch it as an exception. This may really slow down performance. If so, you can try to disable it (edit the install.bat and remove the -DMEX_MEMORY from the calls to the mex compiler) OR increase the number of hash buckets (currently at 30,000). For really large problems, 30,000 will not be nearly enough.
The SVMlight code is the intellectual property of Thorsten Joachims. His license prevents re-distribution of his source code, and I agree with that. It would be very difficult to have various versions floating around on the net that were different and buggy.
The files above include:
Windows users may have difficulty finding a useful "patch" utility. One of two options is available. "patch.exe" is available from GNU32 on SourceForge, or, through the CYGWIN package. This must be in the system's PATH in order to apply the patch. In the "install.bat" file, there are two patch references, one is commented out. If the patch fails with a some random error message, try the other line (the difference is the handling of end-of-line characters.
See [readme.txt] for installation instructions and usage examples.
If you find this package useful or find a bug in it, please send an email.
© Tom Briggs,
All Rights Reserved.
This page last modified: