资源简介
包括几种SVM,并有简单的介绍,希望对大家有所帮助

代码片段和文件信息
function [K] = kernel(kerxy)
% Calculate kernel function.
%
% x: 输入样本d×n1的矩阵n1为样本个数d为样本维数
% y: 输入样本d×n2的矩阵n2为样本个数d为样本维数
%
% ker 核参数(结构体变量)
% the following fields:
% type - linear : k(xy) = x‘*y
% poly : k(xy) = (x‘*y+c)^d
% gauss : k(xy) = exp(-0.5*(norm(x-y)/s)^2)
% tanh : k(xy) = tanh(g*x‘*y+c)
% degree - Degree d of polynomial kernel (positive scalar).
% offset - Offset c of polynomial and tanh kernel (scalar negative for tanh).
% width - Width s of Gauss kernel (positive scalar).
% gamma - Slope g of the tanh kernel (positive scalar).
%
% ker = struct(‘type‘‘linear‘);
% ker = struct(‘type‘‘ploy‘‘degree‘d‘offset‘c);
% ker = struct(‘type‘‘gauss‘‘width‘s);
% ker = struct(‘type‘‘tanh‘‘gamma‘g‘offset‘c);
%
% K: 输出核参数n1×n2的矩阵
%-------------------------------------------------------------%
switch ker.type
case ‘linear‘
K = x‘*y;
case ‘ploy‘
d = ker.degree;
c = ker.offset;
K = (x‘*y+c).^d;
case ‘gauss‘
s = ker.width;
rows = size(x2);
cols = size(y2);
tmp = zeros(rowscols);
for i = 1:rows
for j = 1:cols
tmp(ij) = norm(x(:i)-y(:j));
end
end
K = exp(-0.5*(tmp/s).^2);
case ‘tanh‘
g = ker.gamma;
c = ker.offset;
K = tanh(g*x‘*y+c);
otherwise
K = 0;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4042 2007-12-04 12:04 svmTrain.m
文件 1035 2009-06-19 18:58 工具箱说明.txt
文件 1510 2007-07-04 15:33 kernel.m
文件 290930 2006-12-31 22:56 LIBSVM a Library for Support Vector Machines.pdf
文件 2890 2008-10-05 20:52 Main_SVC_C.m
文件 3126 2007-07-04 15:34 Main_SVC_Nu.m
文件 3116 2007-07-04 15:35 Main_SVM_One_Class.m
文件 3037 2007-12-04 12:18 Main_SVR_Epsilon.m
文件 3015 2007-12-04 12:14 Main_SVR_Nu.m
文件 4061 2007-07-04 22:11 svmSim.m
----------- --------- ---------- ----- ----
316762 10
相关资源
- 基于蚁群算法优化SVM的瓦斯涌出量预
- 基于模糊聚类和SVM的瓦斯涌出量预测
- 基于CAN总线与ZigBee的瓦斯实时监测及
- SVM-Light资料,使用说明
- 果蝇算法融合SVM的开采沉陷预测模型
- BoW|Pyramid BoW+SVM进行图像分类
- 基于libsvm的图像分割代码
- 基于SVM及两类运动想象的多通道特征
- 小波包和SVM在轴承故障识别中的应用
- 林智仁教授最新版本LibSVM工具箱
- 台湾林教授的支持向量机libsvm
- 新闻分类语料
- libsvm-3.20
- 7种支持向量机SVM工具包
- A Practical Guide to Support Vector Classifica
- libSVM的代码详细解析,注释非常详细
- 台湾林志恒的LIBSVM的中文简体说明文
- SVM算法-回归拟合程序.zip
- 基于Grid-Search_PSO优化SVM回归预测矿井
- 新冒落带高度算法FOA-SVM预计模型
- 官方最新版本libsvm-3.23
- 基于PCA和SVM的个性化睡眠分期研究
- 基于svm四种工具箱
- 自然语言处理之文本主题判别
- HOG+SVM实现数字识别
- opencv自带SVM分类器使用程序
- 基于HOG特征提取的svm行人头肩训练
- 遗传算法优化支持向量机算法
- 经典的行人检测算法,利用HOG和SVM实
- 基于GA参数优化的在线学习SVM算法及其
评论
共有 条评论