svmtrain(1,2,3,4,5,6)
可见该训练模型函数有6个参数的得到训练model。
1.第一个是需要训练的数据(a1,a2,a3...) ai=(x1,x2,x3...)(xi代表不同的属性值)
2.第二个参数是训练数据的标记lambel,一般是-1和+1。注意的是第一第二参数一般都要进行导致(数据标准化),且统一行或列(如lambel是以列表示,那么a向量也要是(a1,a2,a3...)的转置表示)
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.
确定一个内核多项式最有可能的项数
'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:
采用制定的方法去选择超平面