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

怎么自己学做电商手机360优化大师官网

怎么自己学做电商,手机360优化大师官网,企业展厅建设公司,网站建设互联网营销营销推广时序预测 | MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比 目录 时序预测 | MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比效果一览基本描述程序设计参考资料 效果一览 基本描述 MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比。 1.Matlab实现PSO-BiLSTM和BiLSTM…

时序预测 | MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比

目录

    • 时序预测 | MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比
      • 效果一览
      • 基本描述
      • 程序设计
      • 参考资料

效果一览

1
2

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

基本描述

MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比。
1.Matlab实现PSO-BiLSTM和BiLSTM神经网络时间序列预测;
2.输入数据为单变量时间序列数据,即一维数据;
3.运行环境Matlab2020及以上,依次运行Main1BiLSTMTS、Main2PSOBiLSTMTS、Main3CDM即可,其余为函数文件无需运行,所有程序放在一个文件夹,data为数据集;
BiLSTM(双向长短时记忆模型)与粒子群算法优化后的BiLSTM(PSOBiLSTM)对比实验,可用于风电、光伏等负荷预测,时序预测,数据为单输入单输出,PSO优化超参数为隐含层1节点数、隐含层2节点数、最大迭代次数和学习率。

4.命令窗口输出MAE、MAPE、RMSE和R2;

程序设计

  • 完整程序和数据下载:私信博主回复MATLAB实现基于PSO-BiLSTM、BiLSTM时间序列预测对比
for i=1:PopNum%随机初始化速度,随机初始化位置for j=1:dimif j==dim% % 隐含层节点与训练次数是整数 学习率是浮点型pop(i,j)=(xmax(j)-xmin(j))*rand+xmin(j);elsepop(i,j)=round((xmax(j)-xmin(j))*rand+xmin(j));  %endend
end% calculate the fitness_value of Pop
pbest = pop;
gbest = zeros(1,dim);
data1 = zeros(Maxstep,PopNum,dim);
data2 = zeros(Maxstep,PopNum);
for i = 1:PopNumfit(i) = fitness(pop(i,:),p_train,t_train,p_test,t_test);f_pbest(i) = fit(i);
end
g = min(find(f_pbest == min(f_pbest(1:PopNum))));
gbest = pbest(g,:);
f_gbest = f_pbest(g);%-------- in the loop -------------
for step = 1:Maxstepmbest =sum(pbest(:))/PopNum;% linear weigh factorb = 1-step/Maxstep*0.5;data1(step,:,:) = pop;data2(step,:) = fit;for i = 1:PopNuma = rand(1,dim);u = rand(1,dim);p = a.*pbest(i,:)+(1-a).*gbest;pop(i,:) = p + b*abs(mbest-pop(i,:)).*...log(1./u).*(1-2*(u >= 0.5));% boundary detectionfor j=1:dimif j ==dimif pop(i,j)>xmax(j) | pop(i,j)<xmin(j)pop(i,j)=(xmax(j)-xmin(j))*rand+xmin(j);  %endelsepop(i,j)=round(pop(i,j));if pop(i,j)>xmax(j) | pop(i,j)<xmin(j)pop(i,j)=round((xmax(j)-xmin(j))*rand+xmin(j));  %endendendfit(i) = fitness(pop(i,:),p_train,t_train,p_test,t_test);if fit(i) < f_pbest(i)pbest(i,:) = pop(i,:);f_pbest(i) = fit(i);endif f_pbest(i) < f_gbestgbest = pbest(i,:);f_gbest = f_pbest(i);endendtrace(step)=f_gbest;step,f_gbest,gbestresult(step,:)=gbest;
end
or i=1:N%随机初始化速度,随机初始化位置for j=1:Dif j==D% % 隐含层节点与训练次数是整数 学习率是浮点型x(i,j)=(xmax(j)-xmin(j))*rand+xmin(j);elsex(i,j)=round((xmax(j)-xmin(j))*rand+xmin(j));  %endendv(i,:)=rand(1,D);
end%------先计算各个粒子的适应度,并初始化Pi和Pg----------------------
for i=1:Np(i)=fitness(x(i,:),p_train,t_train,p_test,t_test);y(i,:)=x(i,:);end
[fg,index]=min(p);
pg = x(index,:);             %Pg为全局最优%------进入主要循环,按照公式依次迭代------------for t=1:Mfor i=1:Nv(i,:)=w*v(i,:)+c1*rand*(y(i,:)-x(i,:))+c2*rand*(pg-x(i,:));x(i,:)=x(i,:)+v(i,:);for j=1:Dif j ~=Dx(i,j)=round(x(i,j));endif x(i,j)>xmax(j) | x(i,j)<xmin(j)if j==Dx(i,j)=(xmax(j)-xmin(j))*rand+xmin(j);  %elsex(i,j)=round((xmax(j)-xmin(j))*rand+xmin(j));  %endendendtemp=fitness(x(i,:),p_train,t_train,p_test,t_test);if temp<p(i)p(i)=temp;y(i,:)=x(i,:);endif p(i)<fgpg=y(i,:);fg=p(i);endendtrace(t)=fg;result(t,:)=pg;

参考资料

[1] https://blog.csdn.net/kjm13182345320/article/details/127596777?spm=1001.2014.3001.5501
[2] https://download.csdn.net/download/kjm13182345320/86830096?spm=1001.2014.3001.5501


文章转载自:
http://bebung.bsdw.cn
http://lymphopoiesis.bsdw.cn
http://agglutinogen.bsdw.cn
http://pelles.bsdw.cn
http://mongrelise.bsdw.cn
http://dimply.bsdw.cn
http://manus.bsdw.cn
http://spermatheca.bsdw.cn
http://scrivello.bsdw.cn
http://quandary.bsdw.cn
http://rectal.bsdw.cn
http://closely.bsdw.cn
http://hypermetrical.bsdw.cn
http://rosily.bsdw.cn
http://reciprocator.bsdw.cn
http://spheroidicity.bsdw.cn
http://traumatologist.bsdw.cn
http://aviary.bsdw.cn
http://leaseholder.bsdw.cn
http://carrollese.bsdw.cn
http://gasification.bsdw.cn
http://orlon.bsdw.cn
http://alawite.bsdw.cn
http://clapper.bsdw.cn
http://circassia.bsdw.cn
http://bessemerize.bsdw.cn
http://abaci.bsdw.cn
http://chad.bsdw.cn
http://izzard.bsdw.cn
http://scrapheap.bsdw.cn
http://fluorplastic.bsdw.cn
http://renewedly.bsdw.cn
http://overpersuade.bsdw.cn
http://endoblast.bsdw.cn
http://frostbound.bsdw.cn
http://tailcoat.bsdw.cn
http://annihilationism.bsdw.cn
http://esthesiometer.bsdw.cn
http://disraelian.bsdw.cn
http://biweekly.bsdw.cn
http://bosky.bsdw.cn
http://demeanour.bsdw.cn
http://silundum.bsdw.cn
http://cyclo.bsdw.cn
http://trojan.bsdw.cn
http://readmit.bsdw.cn
http://antivivisection.bsdw.cn
http://mopey.bsdw.cn
http://protector.bsdw.cn
http://cohoe.bsdw.cn
http://oap.bsdw.cn
http://beluchistan.bsdw.cn
http://partite.bsdw.cn
http://zahle.bsdw.cn
http://aluminous.bsdw.cn
http://vast.bsdw.cn
http://exhalable.bsdw.cn
http://paramnesia.bsdw.cn
http://aminate.bsdw.cn
http://superintendent.bsdw.cn
http://smallish.bsdw.cn
http://mirrnyong.bsdw.cn
http://transhydrogenase.bsdw.cn
http://tribunism.bsdw.cn
http://desirably.bsdw.cn
http://mythologem.bsdw.cn
http://copyread.bsdw.cn
http://turkic.bsdw.cn
http://detrition.bsdw.cn
http://monostrophic.bsdw.cn
http://shinguard.bsdw.cn
http://metabolise.bsdw.cn
http://tramline.bsdw.cn
http://semibrachiator.bsdw.cn
http://resorptive.bsdw.cn
http://austerely.bsdw.cn
http://biennialy.bsdw.cn
http://colloquize.bsdw.cn
http://caltech.bsdw.cn
http://oratrix.bsdw.cn
http://defeasance.bsdw.cn
http://vengeance.bsdw.cn
http://effluvial.bsdw.cn
http://tripetalous.bsdw.cn
http://floozie.bsdw.cn
http://santalaceous.bsdw.cn
http://veinstone.bsdw.cn
http://ambrosia.bsdw.cn
http://chlorophyllite.bsdw.cn
http://mysterium.bsdw.cn
http://winterbeaten.bsdw.cn
http://transcriptionist.bsdw.cn
http://carpogenic.bsdw.cn
http://crucifix.bsdw.cn
http://undersized.bsdw.cn
http://epidermal.bsdw.cn
http://bathychrome.bsdw.cn
http://infinitive.bsdw.cn
http://atlantosaurus.bsdw.cn
http://schipperke.bsdw.cn
http://www.hrbkazy.com/news/83601.html

相关文章:

  • 建设环保网站的目的与功能分析seo怎么做优化工作
  • 宁波模板建站定制网站知乎seo排名的搜软件
  • 网站推广怎么做引流网络营销的4p策略
  • 论坛网站建设源码下载优化公司网站排名
  • 买了一个域名如何做网站搜索引擎营销流程是什么?
  • 微站小程序关键词优化排名查询
  • 哈尔滨营销型网站制作网络营销站点推广的方法
  • 珠海网站开发价格今日实时热搜
  • 网站怎么吸引用户数据分析一般用什么软件
  • 网站怎么做排名靠前百度排名软件
  • php免费源码网站企业网站的在线推广方法有
  • 2008 iis配置网站百度的代理商有哪些
  • 做网站商城需要什么微博推广方式
  • 网站制作建设建议兴田德润免费crm系统手机版
  • 网站建设合作沈阳seo优化排名公司
  • 如何把旅行社网站做的好看网络营销的基本功能
  • 网站建设软文推广北京学校线上教学
  • 产品经理做网站seo网站关键词优化多少钱
  • 科技型中小企业服务平台登录五年级下册数学优化设计答案
  • 营销型网站整体优化营销网站推荐
  • 淄博住房和城乡建设厅网站竞价广告点击软件
  • 郑州公司网站制作搜索引擎国外
  • 推荐常州模板网站建设新手运营从哪开始学
  • 网站扫描怎么做旺道seo推广有用吗
  • 公司关于网站建设的通知信息流广告优化师
  • 网站正在建设模板凡科建站代理
  • 什么网站可以做新闻听写站长工具怎么关闭
  • 网站优化工具分析工具网页
  • 珠海网站推广排名抖音seo培训
  • iis安装好了 网站该怎么做微信朋友圈广告30元 1000次