zoukankan      html  css  js  c++  java
  • libsvm 在MATLAB平台下的安装

    libsvm-mat在MATLAB平台下的安装

    1. 将libsvm-matlab所在工具箱添加到matlab工作搜索目录
    (File ——> Set Path… ——> Add with Subfolders...);
    2. 选择编译器(mex -setup);
    3. 编译文件(make)。

    >> 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\R2010b\sys\lcc
    [2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0
    [3] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
    [0] None
    Compiler: 3
    Please verify your choices:
    Compiler: Microsoft Visual C++ 6.0
    Location: C:\Program Files\Microsoft Visual Studio
    Are these correct [y]/n? y
    Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2010b\mexopts.bat
    From template:              C:\PROGRA~1\MATLAB\R2010b\bin\win32\mexopts\msvc60opts.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.
    **************************************************************************
    >> make
      C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: 'libsvmread.c' not found. 

    If make.m failes, please check README about detailed instructions.

    (我用3.11版本的也出现这样的问题 后来下了个2.91版本的就可以了. 可以肯定不是路径设置的问题)

    解决方法,如下图,设置Current folder:

    libsvm_install_current_folder

    http://archive.ics.uci.edu/ml/index.html

    http://www.csie.ntu.edu.tw/~cjlin/libsvm

  • 相关阅读:
    Yslow-23条规则
    ASP.Net MVC多语言
    Java笔记--反射机制
    Java笔记--常用类
    Java笔记--多线程
    Java--IO流
    Java笔记--枚举&注解
    Java笔记--泛型
    Java笔记--异常
    Java笔记--集合
  • 原文地址:https://www.cnblogs.com/emanlee/p/2274936.html
Copyright © 2011-2022 走看看