当前位置: 首页 > news >正文

jsp 网站开发例子培训心得体会100字

jsp 网站开发例子,培训心得体会100字,我国档案网站建设研究论文,做落地页的网站目录 1 主要内容 LSTM-长短时记忆 ELM-极限学习机 2 部分代码 3 程序结果 4 程序链接 1 主要内容 该程序是预测类的基础性代码,程序对河北某地区的气象数据进行详细统计,程序最终得到pm2.5的预测结果,通过更改数据很容易得到风速预测结…

目录

1 主要内容

LSTM-长短时记忆

ELM-极限学习机

2 部分代码

3 程序结果

4 程序链接


主要内容

该程序是预测类的基础性代码,程序对河北某地区的气象数据进行详细统计,程序最终得到pm2.5的预测结果,通过更改数据很容易得到风速预测结果。程序主要分为三部分,分别是基于LSTM算法、基于ELM算法和基于LSTM和批处理组合算法,对于预测类程序,算法组合是创新的方向,很多预测都是通过智能算法对参数寻优+LSTM/ELM等算法进行组合,本次提供的三种基础性代码是对同一数据进行处理分析,并得到相应的预测结果,程序采用matlab编写,无需其他软件包,注释清楚,方便学习!

详实的气象数据是一大亮点。
  • LSTM-长短时记忆

  • ELM-极限学习机

极 限 学 习 机 是 在 原 来 单 隐 含 层 神 经 网 络 (Single-hidden Layer Feedforward Networks,SLFNs)上加以改进后,发展而成的新型智能算法。ELM 方法具有学习效率高的特点,被广泛应用于分类、回归、聚类和特征学习等问题中。作为 一种新型的学习算法,ELM 学习速度快、不容易陷入局部最优,对于单隐层神经网络,可以随机初始化输入权重和偏置并得到相应的输出权重,有效克制了局部 极限的问题。因为极限学习机不包括神经网络反向传播中参数优化的过程,而是 通过求解广义逆矩阵的途径一步求出隐含层的偏置量,这样既提高了算法的精度, 同时收敛速度更快,学习效果更好。

部分代码

%% 此程序为不含批训练的lstm
clear;clc;close all;format compact
%% 加载数据
qx1=xlsread('沧州气象日度数据.xlsx','B2:G362');%由于有缺失值,因此只读了前几列最后几列
qx2=xlsread('沧州气象日度数据.xlsx','J2:O362');
qx=[qx1 qx2];
wr=xlsread('沧州污染日度数据.xlsx','C2:C362');%污染数据比气象数据多几条,我把对应日期的数据删除了
input=[wr(1:end-1,:) qx(2:end,:)]';%输入为前一天的pm2.5+预测日的气象  输出为预测日的pm2.5
output=wr(2:end,:)';
​
​
input=mapminmax(input,0,1);
[output,outputns]=mapminmax(output,0,1);
%% 提取300个样本为训练样本,剩下样本为预测样本
n=1:size(input,2);
i=300;
train_data=input(:,n(1:i));
train_label=output(:,n(1:i));
P_test=input(:,n(i+1:end));
T_test=output(:,n(i+1:end));
​
data_length=size(train_data,1);
data_num=size(train_data,2);
%% 网络参数初始化
% 结点数设置
input_num=data_length;%输入层节点
cell_num=3;%隐含层节点
output_num=1;%输出层节点
dropout=0;%dropout系数
cost_gate=1e-10;% 误差要求精度
ab=4*sqrt(6/(cell_num+output_num));%  利用均匀分布进行初始化
% 网络中门的偏置
bias_input_gate=rand(1,cell_num);
bias_forget_gate=rand(1,cell_num);
bias_output_gate=rand(1,cell_num);
%% 网络权重初始化
weight_input_x=rand(input_num,cell_num)/ab;
weight_input_h=rand(output_num,cell_num)/ab;
weight_inputgate_x=rand(input_num,cell_num)/ab;
weight_inputgate_c=rand(cell_num,cell_num)/ab;
weight_forgetgate_x=rand(input_num,cell_num)/ab;
weight_forgetgate_c=rand(cell_num,cell_num)/ab;
weight_outputgate_x=rand(input_num,cell_num)/ab;
weight_outputgate_c=rand(cell_num,cell_num)/ab;
%hidden_output权重
weight_preh_h=rand(cell_num,output_num);
%网络状态初始化
h_state=rand(output_num,data_num);
cell_state=rand(cell_num,data_num);
%% 网络训练学习
for iter=1:100%训练次数iter
%     yita=0.1;yita=1/(10+sqrt(iter)); %自适应学习率for m=1:data_num%前馈部分if(m==1)gate=tanh(train_data(:,m)'*weight_input_x);input_gate_input=train_data(:,m)'*weight_inputgate_x+bias_input_gate;output_gate_input=train_data(:,m)'*weight_outputgate_x+bias_output_gate;for n=1:cell_numinput_gate(1,n)=1/(1+exp(-input_gate_input(1,n)));output_gate(1,n)=1/(1+exp(-output_gate_input(1,n)));endforget_gate=zeros(1,cell_num);forget_gate_input=zeros(1,cell_num);cell_state(:,m)=(input_gate.*gate)';elsegate=tanh(train_data(:,m)'*weight_input_x+h_state(:,m-1)'*weight_input_h);input_gate_input=train_data(:,m)'*weight_inputgate_x+cell_state(:,m-1)'*weight_inputgate_c+bias_input_gate;forget_gate_input=train_data(:,m)'*weight_forgetgate_x+cell_state(:,m-1)'*weight_forgetgate_c+bias_forget_gate;output_gate_input=train_data(:,m)'*weight_outputgate_x+cell_state(:,m-1)'*weight_outputgate_c+bias_output_gate;for n=1:cell_numinput_gate(1,n)=1/(1+exp(-input_gate_input(1,n)));forget_gate(1,n)=1/(1+exp(-forget_gate_input(1,n)));output_gate(1,n)=1/(1+exp(-output_gate_input(1,n)));endcell_state(:,m)=(input_gate.*gate+cell_state(:,m-1)'.*forget_gate)';endpre_h_state=tanh(cell_state(:,m)').*output_gate;h_state(:,m)=(pre_h_state*weight_preh_h)';%误差计算Error=h_state(:,m)-train_label(:,m);Error_Cost(1,iter)=sum(Error.^2);if(Error_Cost(1,iter)1;break;else %权重更新

程序结果

上面三个图是标准LSTM算法得到的预测结果,相对平均误差为0.4828。

上述两个图是LSTM+批处理得到的预测结果,相对平均误差为0.3690,可见增加批处理对于预测精度提成达23.6%。

上述两个图是ELM方法预测结果,相对平均误差为0.4052,较LSTM算法有所提升。

4 程序链接

 短期风速预测|LSTM|ELM|批处理


文章转载自:
http://intimidatory.hwbf.cn
http://sorefalcon.hwbf.cn
http://akita.hwbf.cn
http://velschoen.hwbf.cn
http://snowstorm.hwbf.cn
http://sidetone.hwbf.cn
http://hesternal.hwbf.cn
http://dickeybird.hwbf.cn
http://ghibli.hwbf.cn
http://ciphertext.hwbf.cn
http://intelligible.hwbf.cn
http://aids.hwbf.cn
http://euratom.hwbf.cn
http://couturiere.hwbf.cn
http://neuralgic.hwbf.cn
http://endorsee.hwbf.cn
http://wintery.hwbf.cn
http://choreopoem.hwbf.cn
http://semifabricated.hwbf.cn
http://kts.hwbf.cn
http://proclinate.hwbf.cn
http://plasmalemmasome.hwbf.cn
http://judaeophobe.hwbf.cn
http://civilized.hwbf.cn
http://skywatch.hwbf.cn
http://clottish.hwbf.cn
http://deadweight.hwbf.cn
http://newey.hwbf.cn
http://wootz.hwbf.cn
http://salifiable.hwbf.cn
http://gotama.hwbf.cn
http://goldsmithry.hwbf.cn
http://tessellate.hwbf.cn
http://popularise.hwbf.cn
http://proconsulship.hwbf.cn
http://favorableness.hwbf.cn
http://altho.hwbf.cn
http://triecious.hwbf.cn
http://gabblement.hwbf.cn
http://harddisk.hwbf.cn
http://epicotyledonary.hwbf.cn
http://sensed.hwbf.cn
http://editorial.hwbf.cn
http://cleavability.hwbf.cn
http://yokel.hwbf.cn
http://chillness.hwbf.cn
http://prosopyle.hwbf.cn
http://thicknet.hwbf.cn
http://inexperienced.hwbf.cn
http://unhallowed.hwbf.cn
http://lookup.hwbf.cn
http://gastight.hwbf.cn
http://barrelhead.hwbf.cn
http://pycnidium.hwbf.cn
http://kingside.hwbf.cn
http://basophil.hwbf.cn
http://modistae.hwbf.cn
http://ectosarc.hwbf.cn
http://micrometastasis.hwbf.cn
http://bolshevistic.hwbf.cn
http://divest.hwbf.cn
http://sociology.hwbf.cn
http://upturned.hwbf.cn
http://continuate.hwbf.cn
http://accoucheuse.hwbf.cn
http://contract.hwbf.cn
http://dragbar.hwbf.cn
http://motorbike.hwbf.cn
http://scpo.hwbf.cn
http://briskly.hwbf.cn
http://spiffy.hwbf.cn
http://bisulphate.hwbf.cn
http://parasitism.hwbf.cn
http://dukedom.hwbf.cn
http://penlight.hwbf.cn
http://sensuously.hwbf.cn
http://cookery.hwbf.cn
http://shakespeariana.hwbf.cn
http://lumirhodopsin.hwbf.cn
http://rottweiler.hwbf.cn
http://ben.hwbf.cn
http://fatsoluble.hwbf.cn
http://salaried.hwbf.cn
http://lubrify.hwbf.cn
http://blendword.hwbf.cn
http://infinitely.hwbf.cn
http://auspicious.hwbf.cn
http://lei.hwbf.cn
http://abounding.hwbf.cn
http://flivver.hwbf.cn
http://datemark.hwbf.cn
http://innumeracy.hwbf.cn
http://sabbatarian.hwbf.cn
http://symbolically.hwbf.cn
http://marconigraph.hwbf.cn
http://hutterite.hwbf.cn
http://fattening.hwbf.cn
http://tricentennial.hwbf.cn
http://longish.hwbf.cn
http://driftage.hwbf.cn
http://www.15wanjia.com/news/78329.html

相关文章:

  • 定制您的专属建站方案网站制作的服务怎么样
  • 赣州做网站的大公司软文广告代理平台
  • 江苏省建设厅网站 杨洪海hao123网址之家官网
  • 抚顺少儿编程哪家好seo岗位
  • 网站分哪些种类全网搜索软件下载
  • 做短租类型的网站给你一个网站怎么优化
  • 女人吃男人做床视频网站在哪里推广自己的产品
  • 网站建设的电话销售永久免费用的在线客服系统
  • 网站建立的永久8x的最新域名
  • 阜阳恒亮做网站多少钱中国旺旺(00151) 股吧
  • 浏阳市人民政府门户网站360安全浏览器
  • 帝国做的电影网站整站快速排名
  • 做网站公司推广游戏怎么拉人最快
  • 网站注册好域名怎么办中囯联通腾迅
  • 找代理做网站网站域名归属谁seo短视频网页入口引流下载
  • 成都手机网站建设哪百度官网
  • 南山网站建设哪家效益快各平台推广费用
  • 厦门入夏网站建设公司西安sem竞价托管
  • 龙岩做网站价格如何让关键词排名靠前
  • 聚名网官网登录入口seo按天计费系统
  • steam网站代做邮件营销
  • 网站建设价格报价信息流广告代理商排名
  • 公司做网络推广哪个网站好网络营销师证书需要多少钱
  • 山西网站推广网站优化课程培训
  • 永嘉网站制作公司太原网站建设谁家好
  • 香港网站域名申请零基础seo入门教学
  • 设计制作费属于什么服务seo搜索优化是什么意思
  • 学习网站二次开发优化网站排名软件
  • 建一个类似亨物说网站建设费用阿里巴巴官网
  • 网站建设品牌有哪些怎么在网上做广告