资源简介
这是一个在MATLAB上面可以运行的极限学习机算法实例,文件中,包含了多个极限学习机样例,ELM说白了就是另一种神经网络,其作用相似,效果又不同,比如其离散型更强等,建议直接修改接口,方便调试

代码片段和文件信息
function Y = elmpredict(PIWBLWTFTYPE)
% ELMPREDICT Simulate a Extreme Learning Machine
% Syntax
% Y = elmtrain(PIWBLWTFTYPE)
% Description
% Input
% P - Input Matrix of Training Set (R*Q)
% IW - Input Weight Matrix (N*R)
% B - Bias Matrix (N*1)
% LW - layer Weight Matrix (N*S)
% TF - Transfer Function:
% ‘sig‘ for Sigmoidal function (default)
% ‘sin‘ for Sine function
% ‘hardlim‘ for Hardlim function
% TYPE - Regression (0default) or Classification (1)
% Output
% Y - Simulate Output Matrix (S*Q)
% Example
% Regression:
% [IWBLWTFTYPE] = elmtrain(PT20‘sig‘0)
% Y = elmtrain(PIWBLWTFTYPE)
% Classification
% [IWBLWTFTYPE] = elmtrain(PT20‘sig‘1)
% Y = elmtrain(PIWBLWTFTYPE)
% See also ELMTRAIN
% Yu Lei11-7-2010
% Copyright www.matlabsky.com
% $Revision:1.0 $
if nargin < 6
error(‘ELM:Arguments‘‘Not enough input arguments.‘);
end
% Calculate the layer Output Matrix H
Q = size(P2);
BiasMatrix = repmat(B1Q);
tempH = IW * P + BiasMatrix;
switch TF
case ‘sig‘
H = 1 ./ (1 + exp(-tempH));
case ‘sin‘
H = sin(tempH);
case ‘hardlim‘
H = hardlim(tempH);
end
% Calculate the Simulate Output
Y = (H‘ * LW)‘;
if TYPE == 1
temp_Y = zeros(size(Y));
for i = 1:size(Y2)
[~index] = max(Y(:i));
temp_Y(indexi) = 1;
end
Y = vec2ind(temp_Y);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-08-30 12:47 07 极限学习机(Extreme Learning Machine ELM)\
文件 541530 2016-10-08 01:17 07 极限学习机(Extreme Learning Machine ELM)\Class_7.pdf
目录 0 2018-08-30 12:47 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\
目录 0 2018-08-30 12:47 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\
文件 1450 2015-09-26 09:01 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\elmpredict.m
文件 1752 2010-11-07 15:23 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\elmtrain.m
文件 1105 2010-10-17 14:51 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\iris_data.mat
文件 1538 2015-09-26 08:48 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\main_iris.m
文件 1339 2015-09-26 08:51 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\main_spectra.m
文件 171497 2010-10-14 20:24 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example\spectra_data.mat
文件 176517 2018-03-07 22:08 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\Example.zip
文件 1450 2015-09-26 09:01 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\elmpredict.m
文件 1752 2010-11-07 15:23 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\elmtrain.m
目录 0 2018-08-30 12:47 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\
文件 9337 2015-09-26 09:45 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_iris.html
文件 3743 2015-09-26 09:45 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_iris.png
文件 7762 2015-09-26 09:45 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_iris_01.png
文件 8709 2015-09-26 09:44 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_spectra.html
文件 3780 2015-09-26 09:44 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_spectra.png
文件 9506 2015-09-26 09:44 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\html\main_spectra_01.png
文件 1105 2010-10-17 14:51 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\iris_data.mat
文件 1538 2015-09-26 08:48 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\main_iris.m
文件 1339 2015-09-26 08:51 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\main_spectra.m
文件 171497 2010-10-14 20:24 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code\spectra_data.mat
文件 205830 2016-10-08 01:17 07 极限学习机(Extreme Learning Machine ELM)\Class_7_Code.rar
- 上一篇:带操作界面GUI的字母识别-MATLAB程序
- 下一篇:MMC-HVDC模型预测控制
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性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
评论
共有 条评论