欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    MATLAB神经网络及其应用.ppt

    • 资源ID:5439217       资源大小:339.47KB        全文页数:24页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    MATLAB神经网络及其应用.ppt

    MATLAB中的神经网络及其应用:以BP为例,1 一个预测问题,已知:一组标准输入和输出数据(见附件)求解:预测另外一组输入对应的输出背景:略,2 BP网络,3 MATLAB中的newff命令,NEWFF Create a feed-forward backpropagation network.Syntaxnet=newffnet=newff(PR,S1 S2.SNl,TF1 TF2.TFNl,BTF,BLF,PF),命令newff中的参数说明,NET=NEWFF creates a new network with a dialog box.NEWFF(PR,S1 S2.SNl,TF1 TF2.TFNl,BTF,BLF,PF)takes,PR-Rx2 matrix of min and max values for R input elements.Si-Size of ith layer,for Nl layers.TFi-Transfer function of ith layer,default=tansig.BTF-Backprop network training function,default=trainlm.BLF-Backprop weight/bias learning function,default=learngdm.PF-Performance function,default=mse.and returns an N layer feed-forward backprop network.,参数说明,The transfer functions TFi can be any differentiable transfer function such as TANSIG,LOGSIG,or PURELIN.The training function BTF can be any of the backprop training functions such as TRAINLM,TRAINBFG,TRAINRP,TRAINGD,etc.,参数说明,*WARNING*:TRAINLM is the default training function because it is very fast,but it requires a lot of memory to run.If you get an out-of-memory error when training try doing one of these:(1)Slow TRAINLM training,but reduce memory requirements,by setting NET.trainParam.mem_reduc to 2 or more.(See HELP TRAINLM.)(2)Use TRAINBFG,which is slower but more memory efficient than TRAINLM.(3)Use TRAINRP which is slower but more memory efficient than TRAINBFG.,参数说明,The learning function BLF can be either of the backpropagation learning functions such as LEARNGD,or LEARNGDM.The performance function can be any of the differentiable performance functions such as MSE or MSEREG.,4 MATLAB中的train命令,TRAIN Train a neural network.Syntaxnet,tr,Y,E,Pf,Af=train(NET,P,T,Pi,Ai,VV,TV)DescriptionTRAIN trains a network NET according to NET.trainFcn and NET.trainParam.,输入参数说明,TRAIN(NET,P,T,Pi,Ai)takes,NET-Network.P-Network inputs.T-Network targets,default=zeros.Pi-Initial input delay conditions,default=zeros.Ai-Initial layer delay conditions,default=zeros.VV-Structure of validation vectors,default=.TV-Structure of test vectors,default=.,输出参数说明,and returns,NET-New network.TR-Training record(epoch and perf).Y-Network outputs.E-Network errors.Pf-Final input delay conditions.Af-Final layer delay conditions.,说明,Note that T is optional and need only be used for networks that require targets.Pi and Pf are also optional and need only be used for networks that have input or layer delays.,输入参数数据结构说明,The cell array format is easiest to describe.It is most convenient for networks with multiple inputs and outputs,and allows sequences of inputs to be presented:P-NixTS cell array,each element Pi,ts is an RixQ matrix.T-NtxTS cell array,each element Pi,ts is an VixQ matrix.Pi-NixID cell array,each element Pii,k is an RixQ matrix.Ai-NlxLD cell array,each element Aii,k is an SixQ matrix.Y-NOxTS cell array,each element Yi,ts is an UixQ matrix.E-NtxTS cell array,each element Pi,ts is an VixQ matrix.Pf-NixID cell array,each element Pfi,k is an RixQ matrix.Af-NlxLD cell array,each element Afi,k is an SixQ matrix.,输入参数数据结构说明,Where:Ni=net.numInputsNl=net.numLayersNt=net.numTargetsID=net.numInputDelaysLD=net.numLayerDelaysTS=number of time stepsQ=batch sizeRi=net.inputsi.sizeSi=net.layersi.sizeVi=net.targetsi.size,5 实现,数据处理和准备把WORD数据转换成TXT文件格式利用dlmread读取数据是否进行归一化处理?,生成网络,为调用newff命令做好各种准备 pr矩阵的形成网络结构确定:网络层数以及每层的神经元个数每一层的传输函数的确定注意参数的含义,进行网络训练,为调用train命令进行数据准备输入样本的确定标准输出的确定网络训练参数(次数)的确定 net.trainParam.epochs=100调用网络训练命令:net=train(net,p,t);,进行输出模拟,调用y=sim(net,p)进行输出模拟画图进行对比,查看网络参数及权值,net net参数引用和查看,6 预测及分析,sim输出 重新训练并sim输出 画图对比,7 程序实现,clcclear allclear netload data;load data_pre;c1=in(:,1);c2=in(:,2);c3=in(:,3);c4=in(:,4);c5=in(:,5);c6=in(:,6);c7=in(:,7);c8=in(:,8);,c1_max=max(c1);c2_max=max(c2);c3_max=max(c3);c4_max=max(c4);c5_max=max(c5);c6_max=max(c6);c7_max=max(c7);c8_max=max(c8);,续,%c1=c1/c1_max;%c2=c2/c2_max;%c3=c3/c3_max;%c4=c4/c4_max;%c5=c5/c5_max;%c6=c6/c6_max;%c7=c7/c7_max;%c8=c8/c8_max;%,%in(:,1)=c1;%in(:,2)=c2;%in(:,3)=c3;%in(:,4)=c4;%in(:,5)=c5;%in(:,6)=c6;%in(:,7)=c7;%in(:,8)=c8;%,续,%c1_max=max(c1);c1_min=min(c1);%c2_max=max(c2);c2_min=min(c2);%c3_max=max(c3);c3_min=min(c3);%c4_max=max(c4);c4_min=min(c4);,%c5_max=max(c5);c5_min=min(c5);%c6_max=max(c6);c6_min=min(c6);%c7_max=max(c7);c7_min=min(c7);%c8_max=max(c8);c8_min=min(c8);,续,pr=c1_min,c1_max;c2_min,c2_max;c3_min,c3_max;c4_min,c4_max;c5_min,c5_max;c6_min,c6_max;c7_min,c7_max;c8_min,c8_max;p=in;t=out;net=newff(pr,8 11 4,logsig logsig logsig);,net.trainParam.epochs=100;net=train(net,p,t);y=sim(net,p);%plot(t);%figure;%plot(y);,

    注意事项

    本文(MATLAB神经网络及其应用.ppt)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开