matlabsvmtrain参数,使用matlab的svm(支持向量机)参数介绍

matlabsvmtrain参数,使⽤matlab的svm(⽀持向量机)参数介
svmtrain(1,2,3,4,5,6)
可见该训练模型函数有6个参数的得到训练model。
1.第⼀个是需要训练的数据(a1,) ai=(x1,)(xi代表不同的属性值)
2.第⼆个参数是训练数据的标记lambel,⼀般是-1和+1。注意的是第⼀第⼆参数⼀般都要进⾏导致(数据标准化),且统⼀⾏或列(如lambel 是以列表⽰,那么a向量也要是(a1,a2,a
<)的转置表⽰)
3.第三个参数可选:
'rbf_sigma' A positive number specifying the scaling factor in the Gaussian radial basis function kernel. Default is 1.
确定⼀个基准于内核函数的可缩放的⾼斯径向,默认是1
'polyorder' A positive integer specifying the order of the polynomial kernel. Default is 3.
颐和园2006>董书民
确定⼀个内核多项式最有可能的项数
'mlp_params' A vector [P1 P2] specifying the parameters of MLP kernel. The MLP kernel takes the form: K = tanh(P1UV' + P2), where P1 > 0 and P2 < 0. Default is [1,-1].
设置这个MLP内核的权重向量
'method' A string specifying the method used to find the separating hyperplane. Choices are:
生物陶粒
采⽤制定的⽅法去选择超平⾯
4.可选参数:
'SMO' - Sequential Minimal Optimization (SMO) method (default). It implements the L1 soft-margin SVM classifier.
顺序最⼩优化是默认的⽅法,他实现了间隔软化分类
'QP' - Quadratic programming (requires an Optimization Toolbox license). It implements the L2 soft-
margin SVM classifier. Method 'QP' doesn't scale well for TRAINING with large number of observations.(⼆次规划)
'LS' - Least-squares method. It implements the L2 soft-margin SVM classifier.
最⼩⼆乘⽅法,也是软间隔分类。
5.第五个参数:
如填Kernel_Function则要选择⼀个内核函数
6.第六个参数
可选参数:
交通流'linear' - Linear kernel or dot product (default). In this case, svmtrain finds the optimal separating plane in the original space.
线性内核函数或者是点积形式,这是默认参数。它会到⼀个最佳的分离的平⾯在原始数据中。
'quadratic' - Quadratic kernel(⼆次核函数)平凡的感动
数字化展示
'polynomial' - Polynomial kernel with default order 3. To specify another order, use the 'polyorder' argument.
多项式核函数,默认是3阶,如果需要提升,在‘2’进⾏参数设置
'rbf' - Gaussian Radial Basis Function with default scaling factor 1. To specify another scaling factor, use the 'rbf_sigma' argument.
⾼斯径向核函数,默认核宽为1,在‘rbf_sigma’可以进⾏参数设置
'mlp' - Multilayer Perceptron kernel (MLP) with default weight 1 and default bias -1. To specify another weight or bias, use the 'mlp_params' argument.
多层感知核函数,默认权重1,偏好-1

本文发布于:2024-09-22 19:45:37,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/569950.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:函数   内核   训练   默认   参数   数据   间隔   分类
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议