libsvm的安装【转】
来源:互联网 发布:数据可视化常用工具 编辑:程序博客网 时间:2024/06/06 13:21
之所以要把这个无聊的问题再次发帖,因为我怕以后我会忘记,我可以来论坛寻找,也因为这是使用libsvm的第一步(我在网上找了很久没有发现)
最关键的是compilers的选择(对于把Microsoft visual stdio 2005或者其他的编译器安装在自定义目录下的这一步非常关键) 以下是步骤:
>> mex -setup % 这是必须的
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? n%这次是选择编译器,输入n,因为你的是自定义的
%出现下面的选项:
Select a compiler:
[1] Borland C++ Compiler (free command line tools) 5.5
[2] Borland C++Builder 6.0
[3] Borland C++Builder 5.0
[4] Compaq Visual Fortran 6.1
[5] Compaq Visual Fortran 6.6
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker)
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker)
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker)
[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker)
[10] Lcc-win32 C 2.4.1
[11] Microsoft Visual C++ 6.0
[12] Microsoft Visual C++ .NET 2003
[13] Microsoft Visual C++ 2005
[14] Microsoft Visual C++ 2005 Express Edition
[15] Open WATCOM C++ 1.3
[0] None
Compiler: 13%这次选择13,或许你也可以用其他的
The default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8,
but that directory does not exist on this machine.
Use C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径 继续选择n
Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
% 下面就是确认了
Please verify your choices:
Compiler: Microsoft Visual C++ 2005
Location: D:\Program Files\Microsoft Visual Studio 8
Are these correct?([y]/n): y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2005 require
that Microsoft Visual Studio 2005 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.
You can find more information about this at:
http://www.mathworks.com/support/solutions/data/1-2223MW.html
***************************************************************************
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat
From template: D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat
Done . . . % ok,done!
>> make
>>
%至此彻底完成,
%以下是测试
>>load heart_scale.mat
>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');
>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); %
Accuracy = 86.6667% (234/270) (classification)% done
最关键的是compilers的选择(对于把Microsoft visual stdio 2005或者其他的编译器安装在自定义目录下的这一步非常关键) 以下是步骤:
>> mex -setup % 这是必须的
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? n%这次是选择编译器,输入n,因为你的是自定义的
%出现下面的选项:
Select a compiler:
[1] Borland C++ Compiler (free command line tools) 5.5
[2] Borland C++Builder 6.0
[3] Borland C++Builder 5.0
[4] Compaq Visual Fortran 6.1
[5] Compaq Visual Fortran 6.6
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker)
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker)
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker)
[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker)
[10] Lcc-win32 C 2.4.1
[11] Microsoft Visual C++ 6.0
[12] Microsoft Visual C++ .NET 2003
[13] Microsoft Visual C++ 2005
[14] Microsoft Visual C++ 2005 Express Edition
[15] Open WATCOM C++ 1.3
[0] None
Compiler: 13%这次选择13,或许你也可以用其他的
The default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8,
but that directory does not exist on this machine.
Use C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径 继续选择n
Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
% 下面就是确认了
Please verify your choices:
Compiler: Microsoft Visual C++ 2005
Location: D:\Program Files\Microsoft Visual Studio 8
Are these correct?([y]/n): y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2005 require
that Microsoft Visual Studio 2005 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.
You can find more information about this at:
http://www.mathworks.com/support/solutions/data/1-2223MW.html
***************************************************************************
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat
From template: D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat
Done . . . % ok,done!
>> make
>>
%至此彻底完成,
%以下是测试
>>load heart_scale.mat
>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');
>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); %
Accuracy = 86.6667% (234/270) (classification)% done
0 0
- libsvm的安装【转】
- LibSVM安装的问题
- Matlab的libsvm的安装
- libsvm的python安装问题
- matlab libsvm安装的方法
- 安装libsvm遇到的问题
- libsvm的安装及使用
- libsvm在MATLAB的安装
- matlab2014 下的 libsvm 安装
- libsvm在MATLAB的安装
- LibSVM学习1:Libsvm工具箱的下载、安装和使用
- LIBSVM安装
- libsvm安装
- libsvm安装
- libsvm 安装
- libsvm安装
- Matlab的libsvm的安装过程
- Matlab的libsvm-3.20的安装
- Android布局xml的include
- Android switch语句报case expressions must be constant expressions
- A+B for Matrices_1001
- java--WebService小例子【MyEclipse10】
- 基于OPENCV的视频中值滤波原理及实现
- libsvm的安装【转】
- xml布局自定义SurfaceView模板
- 呵呵~
- 欢迎使用CSDN-markdown编辑器
- 稳定排序和不稳定排序
- EventBus源码学习
- org.apache.commons.lang.exception.NestableRuntimeException 问题解决方案
- 将.sql文件导入powerdesigner的实现方法详解
- node.js 操作 mongodb