Selasa, 16 Agustus 2011 | By: ilin.blogspot.com

instalasi libsvm di matlab


libsvm merupakan library yang mendukung beberapa bahasa pemrograman seperti python, C#, matlab, dan beberapa bahasa pemrograman lainnya untuk mendukung mesin pembelajaran , yakni SVM (Support Vector Machines). pada pembahasan kali ini hanya ditekankan pada matlab saja. untuk instalasinya sebagai berikut.
1. Download dulu file libsvm di http://www.csie.ntu.edu.tw/~cjlin/libsvm/
2. Ektrak file libsvm
3. Buka matlab kemudian ganti direktori kerja ke direktori hasil ekstrakan file libsvm
4. Ketik perintah :
mex setup
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y

Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0

[0] None

Compiler: 2
Please verify your choices:

Compiler: Microsoft Visual C++ 2008 SP1
Location: C:\Program Files\Microsoft Visual Studio 9.0

Are these correct [y]/n? y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2008 require
that Microsoft Visual Studio 2008 run-time libraries be
available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
***************************************************************************

Trying to update options file: C:\Documents and Settings\coyocip\Application Data\MathWorks\MATLAB\R2010a\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2010a\bin\win32\mexopts\msvc90opts.bat

Done . . .

**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************

Kemudian ketik perintah :
Make
>> make
>>
Selesai.



0 komentar:

Posting Komentar