- 811
- 0
- 约1.14万字
- 约 9页
- 2017-01-05 发布于贵州
- 举报
支持向量机matlab实现源码支持向量机matlab实现源代码
edit svmtrain
edit svmclassify
edit svmpredict
function [svm_struct, svIndex] = svmtrain(training, groupnames, varargin)
%SVMTRAIN trains a support vector machine classifier
%
% SVMStruct = SVMTRAIN(TRAINING,GROUP) trains a support vector machine
% classifier using data TRAINING taken from two groups given by GROUP.
% SVMStruct contains information about the trained classifier that is
% used by SVMCLASSIFY for classification. GROUP is a column vector of
% values of the same length as TRAINING that defines two groups. Each
% element of GROUP specifies the group the corresponding row of TRAINING
% belongs to. GROUP can be a numeric vector, a string array, or a cell
% array of strings. SVMTRAIN treats NaNs or empty strings in GROUP as
% missing values and ignores the corresponding rows of TRAINING.
%
% SVMTRAIN(...,KERNEL_FUNCTION,KFUN) allows you to specify the kernel
% function KFUN used to map the training data into kernel space. The
% default kernel function is the dot product. KFUN can be one of the
% following strings or a function handle:
%
% linear Linear kernel or dot product
% quadratic Quadratic kernel
% polynomial Polynomial kernel (default order 3)
% rbf Gaussian Radial Basis Function kernel
% mlp Multilayer Perceptron kernel (default scale 1)
% function A kernel function specified using @,
% for example @KFUN, or an anonymous function
%
% A kernel function must be of the form
%
% function K = KFUN(U, V)
%
% The returned value, K, is a matrix of size M-by-N, where U and V have M
% and N rows respectively. If KFUN is parameterized, you can use
% anonymous functions to capture the problem-dependent parameters. For
% example, suppose that your kernel function is
%
% function k = kfun(u,v,p1,p2)
% k = tanh(p1*(u*v)+p2);
%
% You can set values for p1 and p2 and then use an anonymous function:
% @(u,v) kfun(u,v,p1,p2).
%
% SVMTRAIN(...,POLYORDER,ORDER) allows you to specify the order of a
% polynomial kernel. The de
您可能关注的文档
- 用友erp应付账款操作手册用erp应付账款操作手册.doc
- 用友erp操作手册_采购部用erp操作手册_采购部.doc
- 应急救援物资管理制度应急救援资管理制度.doc
- 用友g6总账,报表流程用友g总账,报表流程.doc
- 用友客户经营工具-离线宝v1发版说明用友客户经营工具-离线宝v10发版说明.doc
- 用友nc财务系统自定义结转设手册用友nc财务系统自定义结转设置手册.doc
- 用友时空 cdm 2.0 发说明 时空软件用友时空 cdm 2.0 发版说明 时空软件.doc
- 优秀员工年终表彰评选方案(批)优秀员工年终表彰评选方案(批准).doc
- 攸县项目管理合同攸县项目管理同.doc
- 由“销售型”到“管理型”再到经营型”店长的三级跳由“销售型”到“管理型”再到“经营型”店长的三级跳.doc
原创力文档

文档评论(0)