资源简介
该工具箱主要用于商业用Matlab软件包使用。Matlab的工具箱已经在不同的计算机体系结构编译和测试,包括Linux和Windows。大部分函数可以处理的数据集可高达20,000或更多点的数据。LS- SVMlab对Matlab接口包括一个适合初学者的基本版本,以及一个多类编码技术和贝叶斯框架的更先进的版本。

代码片段和文件信息
function [featureseigveceigvals] = AFE(Xskernel kernel_parsXtypenbeigveceigvals)
% Automatic Feature Extraction by Nystr鰉 method
%
%
% >> features = AFE(X kernel sig2 Xt)
%
% Description
% Using the Nystr鰉 approximation method the mapping of data to
% the feature space can be evaluated explicitly. This gives the
% features that one can use for a linear regression or
% classification. The decomposition of the mapping to the feature
% space relies on the eigenvalue decomposition of the kernel
% matrix. The Matlab (‘eigs‘) or Nystr鰉‘s (‘eign‘) approximation
% using the nb most important eigenvectors/eigenvalues can be
% used. The eigenvalue decomposition is not re-calculated if it is
% passed as an extra argument. This routine internally calls a cmex file.
%
% Full syntax
%
% >> [features U lam] = AFE(X kernel sig2 Xt)
% >> [features U lam] = AFE(X kernel sig2 Xt type)
% >> [features U lam] = AFE(X kernel sig2 Xt type nb)
% >> features = AFE(X kernel sig2 Xt [][] U lam)
%
% Outputs
% features : Nt x nb matrix with extracted features
% U(*) : N x nb matrix with eigenvectors
% lam(*) : nb x 1 vector with eigenvalues
% Inputs
% X : N x d matrix with input data
% kernel : Name of the used kernel (e.g. ‘RBF_kernel‘)
% sig2 : parameter of the used kernel
% Xt : Data from which the features are extracted
% type(*): ‘eig‘(*) ‘eigs‘ or ‘eign‘
% nb(*) : Number of eigenvalues/eigenvectors used in the eigenvalue decomposition approximation
% U(*) : N x nb matrix with eigenvectors
% lam(*) : nb x 1 vector with eigenvalues
%
% See also:
% kernel_matrix RBF_kernel demo_fixedsize
% Copyright (c) 2002 KULeuven-ESAT-SCD License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlab
[Ndim] = size(X);
[Ncdim] = size(Xs);
eval(‘type;‘‘type=‘‘eig‘‘;‘);
if ~(strcmp(type‘eig‘) | strcmp(type‘eigs‘) | strcmp(type‘eign‘))
error(‘Type needs to be ‘‘eig‘‘ ‘‘eigs‘‘ or ‘‘eign‘‘...‘);
end
% eigenvalue decomposition to do..
if nargin<=6
omega = kernel_matrix(Xs kernel kernel_pars);
if strcmp(type‘eig‘)
[eigveceigvals] = eig(omega+2*eye(size(omega1))); % + jitter factor
eigvals = diag(eigvals);
elseif strcmp(type‘eigs‘)
eval(‘nb;‘‘nb=min(size(omega1)10);‘);
[eigveceigvals] = eigs(omega+2*eye(size(omega1))nb); % + jitter factor
elseif strcmp(type‘eign‘)
eval(‘nb;‘‘nb=min(size(omega1)10);‘);
[eigveceigvals] = eign(omega+2*eye(size(omega1))nb); % + jitter factor
end
eigvals = (eigvals-2)/Nc;
peff = eigvals>eps;
eigvals = eigvals(peff);
eigvec = eigvec(:peff);
end
% Cmex
features = phitures(Xs‘X‘eigveceigvalskernel kernel_pars);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2738 2003-02-21 22:39 LS_SVMlab\AFE.m
文件 20200 2009-04-16 21:24 LS_SVMlab\all0416.mat
文件 572 2009-03-28 16:15 LS_SVMlab\alphaandb.m
文件 5785 2003-02-21 22:39 LS_SVMlab\bay_errorbar.m
文件 2003 2003-02-21 22:39 LS_SVMlab\bay_initlssvm.m
文件 10345 2003-02-21 22:39 LS_SVMlab\bay_lssvm.m
文件 8187 2003-02-21 22:39 LS_SVMlab\bay_lssvmARD.m
文件 9358 2003-02-21 22:39 LS_SVMlab\bay_modoutClass.m
文件 5977 2003-02-21 22:39 LS_SVMlab\bay_optimize.m
文件 4178 2003-02-21 22:39 LS_SVMlab\bay_rr.m
文件 164 2005-04-15 21:53 LS_SVMlab\buffer.mc
文件 5632 2003-02-21 22:39 LS_SVMlab\changelssvm.m
文件 4245 2005-04-15 19:10 LS_SVMlab\code.asv
文件 4245 2005-04-15 19:11 LS_SVMlab\code.m
文件 2118 2003-02-21 22:39 LS_SVMlab\codedist_bay.m
文件 756 2003-02-21 22:39 LS_SVMlab\codedist_hamming.m
文件 2018 2003-02-21 22:39 LS_SVMlab\codedist_loss.m
文件 4125 2003-02-21 22:39 LS_SVMlab\codelssvm.m
文件 5197 2003-02-21 22:39 LS_SVMlab\code_ECOC.m
文件 550 2003-02-21 22:39 LS_SVMlab\code_MOC.m
文件 364 2003-02-21 22:39 LS_SVMlab\code_OneVsAll.m
文件 555 2003-02-21 22:39 LS_SVMlab\code_OneVsOne.m
文件 734 2009-03-28 16:26 LS_SVMlab\compufun.m
文件 32 2003-03-20 09:24 LS_SVMlab\Contents.m
文件 8174 2003-02-21 22:39 LS_SVMlab\crossvalidate.m
文件 757 2009-04-19 09:01 LS_SVMlab\data0419.mat
文件 1011 2008-12-11 19:36 LS_SVMlab\datatest.mat
文件 1606 2008-12-11 19:26 LS_SVMlab\datatrain.mat
文件 1886 2003-02-21 22:39 LS_SVMlab\deltablssvm.m
文件 3369 2003-02-21 22:39 LS_SVMlab\democlass.m
............此处省略83个文件信息
相关资源
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
- matlab正弦信号发生器的设计
- matlab程序用Hopfield网络解决TSP
- 实例matlab 编程100个常用程序
- 用MATLAB(BPSK仿真 直接扩频)
- 最小二乘法曲线拟合(MATLAB)
评论
共有 条评论