资源简介
代码解释的很详细,可以直接用,已经测试过了,很好用。
![](http://www.nz998.com/pic/71895.jpg)
代码片段和文件信息
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)
[max_Yindex] = max(Y(:i));
temp_Y(indexi) = 1;
end
Y = vec2ind(temp_Y);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1454 2010-11-07 15:22 chapter30\elmpredict.m
文件 1752 2010-11-07 15:23 chapter30\elmtrain.m
文件 1105 2010-10-17 14:51 chapter30\iris_data.mat
文件 4313 2010-11-30 21:12 chapter30\main.m
文件 171497 2010-10-14 20:24 chapter30\spectra_data.mat
目录 0 2018-08-06 14:30 chapter30
----------- --------- ---------- ----- ----
180121 6
相关资源
- 倒计时工具 更新版
- Labview 官方教程,很有用的入门级资料
- 管理后台模板,自己做项目很有用
- GT-POWER自学很有用哦
- 驾校管理信息系统——很有用的信息
- CDT规约,FDK规约,modbus规约源代码,
- 天融信防火墙命令手册——很有用
- 实习与毕设文档很有用的
- 支持向量机的分类-乳腺癌
- 有导师学习神经网络的回归拟合
- 16位乘法器 很有用
- 正交法测试用例工具,对大家很有用
-
nunit.fr
amework.dll很有用的 - 华电继电保护练习题和课后习题答案
- Pcm声音波形显示用vc实现的很有用啊
- 很有用的project
- 倒排序和分词的处理 提高搜索效率很
- 机器视觉面试题很详细很有用无答案
- 有导师学习神经网络的分类-花朵识别
- 数据库历年考卷很有用哦 。。。。
- AD637真有效值很有用的东西,希望能对
- 计算机导论学习报告很有用的
评论
共有 条评论