资源简介
基于遗传算法的SVM方法,有源代码参考!!

代码片段和文件信息
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-GA\AFE.m
文件 5785 2003-02-21 22:39 LS-SVMlab-GA\bay_errorbar.m
文件 2003 2003-02-21 22:39 LS-SVMlab-GA\bay_initlssvm.m
文件 10345 2003-02-21 22:39 LS-SVMlab-GA\bay_lssvm.m
文件 8187 2003-02-21 22:39 LS-SVMlab-GA\bay_lssvmARD.m
文件 9358 2003-02-21 22:39 LS-SVMlab-GA\bay_modoutClass.m
文件 5977 2003-02-21 22:39 LS-SVMlab-GA\bay_optimize.m
文件 4178 2003-02-21 22:39 LS-SVMlab-GA\bay_rr.m
文件 164 2008-05-19 13:04 LS-SVMlab-GA\buffer.mc
文件 5632 2003-02-21 22:39 LS-SVMlab-GA\changelssvm.m
文件 4245 2003-02-21 22:39 LS-SVMlab-GA\code.m
文件 2118 2003-02-21 22:39 LS-SVMlab-GA\codedist_bay.m
文件 756 2003-02-21 22:39 LS-SVMlab-GA\codedist_hamming.m
文件 2018 2003-02-21 22:39 LS-SVMlab-GA\codedist_loss.m
文件 4125 2003-02-21 22:39 LS-SVMlab-GA\codelssvm.m
文件 5197 2003-02-21 22:39 LS-SVMlab-GA\code_ECOC.m
文件 550 2003-02-21 22:39 LS-SVMlab-GA\code_MOC.m
文件 364 2003-02-21 22:39 LS-SVMlab-GA\code_OneVsAll.m
文件 555 2003-02-21 22:39 LS-SVMlab-GA\code_OneVsOne.m
文件 8174 2003-02-21 22:39 LS-SVMlab-GA\crossvalidate.m
文件 1886 2003-02-21 22:39 LS-SVMlab-GA\deltablssvm.m
文件 3369 2003-02-21 22:39 LS-SVMlab-GA\democlass.m
文件 3864 2003-02-21 22:39 LS-SVMlab-GA\demofun.m
文件 4747 2003-02-21 22:39 LS-SVMlab-GA\demomodel.m
文件 2239 2003-02-21 22:39 LS-SVMlab-GA\demo_fixedclass.m
文件 3099 2003-02-21 22:39 LS-SVMlab-GA\demo_fixedsize.m
文件 3337 2003-02-21 22:39 LS-SVMlab-GA\demo_yinyang.m
文件 3507 2003-02-21 22:39 LS-SVMlab-GA\denoise_kpca.m
文件 3414 2003-02-21 22:39 LS-SVMlab-GA\eign.m
文件 226 2008-05-19 17:38 LS-SVMlab-GA\fitness.m
............此处省略68个文件信息
- 上一篇:eagle 原理图转ad原理图脚本
- 下一篇:webSocket 搭建
相关资源
- Oracle+GoldenGate运维完全手册
- Remote Desktop Organizer v1.4.7 支持win10
- FPGA实现PID.v
- 基于FPGA的sdi视频传输工程(k7_sdi_rx
- FPGA彩条显示
- Xilinx-FPGA-引脚功能详细介绍.doc
- 基于xilinx FPGA的PCIe设计实战
- 基于PCIe的FPGA动态配置设计与实现
- 为什么工程师要掌握FPGA开发知识?
- 数字频率合成dds正弦波基于FPGA的DDS产
- Verilog FPGA UART串口控制器
- gmsk调制在FPGA上实现
- 一个简单的verilog编写的DMA IP CORE,和
- FPGA在步进电机驱动上的应用实例及代
- QGA 量子遗传算法
- fpga实现频率测量
- MCGS与单片机通信
- FPGA开发-ChipScope教程
- 红外循迹小车VHDL程序
- atmega16硬件产生方波的程序
- Gamma函数的解法
- 基于Gabor滤波器的图像纹理特征提取
- atmega64bootload
- 基于FPGA的USB接口设计
- DE2模拟的交通红绿灯
- planeGame飞机游戏
- 一种抗SEU存储器电路的FPGA设计
- Furan-BDOPV Donor-Acceptor Polymers with Plana
- Behaviors of fatigue crack propagation in fric
- Dibrugarh地区牛场土壤中潜在的益生菌
评论
共有 条评论