libsvm3.21 matlab,Matlab 2015b安装libsvm 3.21
1、下载libsvm 3.21,更新日期为2015年12月14日
Download LIBSVM
The current release (Version 3.21, December 2015) of LIBSVMcan be obtained by downloading the zip fileortar.gzfile. You can also check thisgithubdirectory. Please e-mail us if you have problems to download the file.
The package includes the source code of the library in C++ and Java, and a simple program for scaling training data. A README file with detailed explanation is provided. For MS Windows users, there is a sub-directory in the zip file containing binary executable files. Precompiled Java class archive is also included.
Please read the COPYRIGHT notice before using LIBSVM.
2、添加路径
将工具包放到任何地方均可(建议放在D:\Program Files\MATLAB\R2015b\toolbox\matlab下),将工具包添加到Matlab的搜索路径,Set Path->add with subfolders->save。
备注:保证D:\Program Files\MATLAB\R2015b\toolbox\matlab\libsvm-3.21和D:\Program Files\MATLAB\R2015b\toolbox\matlab\libsvm-3.21\matlab都在路径下。
3、编译
确保安装有Visual Studio 2013版,matlab当前工作目录切换到D:\Program Files\MATLAB\R2015b\toolbox\matlab\libsvm-3.21下,在matlab命令行窗口下输入:
>>mex -setup
4、编译文件
matlab当前工作目录切换到D:\Program Files\MATLAB\R2015b\toolbox\matlab\libsvm-3.21\matlab目录下,在matlab命令行窗口下输入命令,若显示MEX completed successfully.表示安装成功:
>>make
5、测试
在libsvm-3.21可以看到hear_scale 文件,在命令行输入下面几行代码
clear;
[label_vector, instance_matrix] =libsvmread('heart_scale');
model = svmtrain(label_vector, instance_matrix);
[predicted_label, accuracy, prob_estimates] = svmpredict(label_vector, instance_matrix, model, 'b');
备注参考:
options:
-s svm_type : set type of SVM (default 0)
0 -- C-SVC
1 -- nu-SVC
2 -- one-class SVM
3 -- epsilon-SVR
4 -- nu-SVR
-t kernel_type : set type of kernel function (default 2)
0 -- linear: u'*v
1 -- polynomial: (gamma*u'*v + coef0)^degree
2 -- radial basis function: exp(-gamma*|u-v|^2)
3 -- sigmoid: tanh(gamma*u'*v + coef0)
-d degree : set degree in kernel function (default 3)
-g gamma : set gamma in kernel function (default 1/num_features)
-r coef0 : set coef0 in kernel function (default 0)
-c cost : set the parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1)
-n nu : set the parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5)
-p epsilon : set the epsilon in loss function of epsilon-SVR (default 0.1)
-m cachesize : set cache memory size in MB (default 100)
-e epsilon : set tolerance of termination criterion (default 0.001)
-h shrinking: whether to use the shrinking heuristics, 0 or 1 (default 1)
-b probability_estimates: whether to train a SVC or SVR model for probability estimates, 0 or 1 (default 0)
-wi weight: set the parameter C of class i to weight*C, for C-SVC (default 1)
The k in the -g option means the number of attributes in the input data.
libsvm3.21 matlab,Matlab 2015b安装libsvm 3.21相关推荐
- 重新安装MySQL5.7.21教程_CentOS6.9安装mysql5.7.21教程
CentOS6.9安装mysql5.7.21教程 先上图, 安装成功: Step1: 检测系统是否自带安装mysql yum list installed | grep mysql Step2: 删除 ...
- WIN10 64位系统MATLAB R2018b第一次安装libsvm
一.准备文件 1.libsvm-3.23 https://www.csie.ntu.edu.tw/~cjlin/libsvm/ 2.TDM-GCC-64.注意32位还是64位,要选择和电脑匹配的版本 ...
- matlab安装LIBSVM
由于matlab中自带的svmtrain和svmclassify函数只能进行原始的二分(标签只能包含两个类别,正和负),如果想使用多类别标签分类,比如高光谱分类等等,那么就需要使用libsvm工具箱, ...
- libsvm工具箱会和matlab,MATLAB实现多分类和libsvm工具箱的安装使用详解
首先告诉大家MATLAB现在可以实现多类分类的问题!但是需要借助工具箱! 下面介绍的是台湾林智仁教授的libsvm工具箱在MATLAB中的安装和使用: 安装环境:Win7.Microsoft Visu ...
- SVM学习——在matlab上安装libsvm库(一)
环境搭建 平台: Windows PC MATLAB 软件 libsvm库(SVM工具箱) 安装步骤 准备工作 安装对应的编译器,在网站上查看当前matlab版本支持的编译器版本.本文使用的matla ...
- matlab成功安装libsvm后,运行程序仍报错“svmtrain has been removed”解决方法记录
系统:windows11 版本:MATLAB R2018b matlab使用支持向量机做回归预测时需要安装 libsvm 包并进行编译,参考此链接博客<http://t.csdn.cn/CfFo ...
- MATLAB安装libsvm工具箱的方法
亲测可行的方法,原文地址:https://www.cnblogs.com/Ran-Chen/p/9462825.html 支持向量机(support vector machine,SVM)是机器学习中 ...
- matlab中安装libsvm时No supported compiler or SDK was found问题
1. 安装libsvm时No supported compiler or SDK was found问题解决方法 参照帖子23楼解决方法:http://www.ilovematlab.cn/threa ...
- Matlab R2016b 版本配置+安装LIBSVM 呕心沥血整理全集
Matlab R2016b 版本配置+安装LIBSVM 呕心沥血整理全集 目录 前言 LIBSVM安装包下载 安装编译器 测试安装是否成功 编译文件 测试使用 本文中参考到的博文 后记 前言 (一些废 ...
最新文章
- 千万别中招!手把手教你复现Log4j2漏洞!
- 13 Java程序员面试宝典视频课程之容器
- 关于R和Python的安全机制
- python两个装饰器执行顺序_python中多个装饰器的执行顺序
- 【Network Security!】ping命令的用法(全)
- codeforces570C
- 设置Tomcat字符集为utf-8
- 记录华为P40Pro+系列相机参数总结
- 浅析Python中深拷贝和浅拷贝
- Windows Server 2008 如何在IIS中添加MIME类型
- 记录yarn被攻击的解决办法
- 用贝叶斯来看看抛硬币的概率
- java date dateformat_java中Date与DateFormat的格式输出
- python discuz搜索api_Django用内置方法实现简单搜索功能的方法
- ORA-01157: cannot identify/lock data file处理
- 【Hbase】HBase分布式安装
- mysql负载时高时低_Mysql服务器负载很高,性能问题排查思路是怎样的?
- MySQL数据库导入SQL[ERR]Unknown collation: ‘utf8mb4_0900_ai_ci‘的解决办法
- 如何修改Tomcat版本
- 手机摄像头采集并推流_助力网上广交会—OBS直播推流软件简易教程
热门文章
- 西安python_西安找工作|西安人才网|西安全职招聘信息-西安58同城
- Telnet配合netty打印数据(springboot+netty)
- Spring Boot 使用模板引擎
- matlab连通区边界_Matlab图像处理学习笔记(一):二值化、开操作、连通区域提取、重心、ROI...
- 查询linux磁盘剩余空间脚本,linux磁盘空间报警脚本
- OpenShift 4 之集群是如何通过Cluster Version Operator升级的?
- 依赖反转原理,IoC容器和依赖注入:第3部分
- Linus Torvalds 不担心微软将控制 Linux
- .NET Core 2.1.12 与 2.2.6 发布,修复 URL 重定向欺骗漏洞
- ASP.NET Core 2.0身份和角色管理入门