新版Matlab中神经网络训练函数Newff的使用方法.doc
《新版Matlab中神经网络训练函数Newff的使用方法.doc》由会员分享,可在线阅读,更多相关《新版Matlab中神经网络训练函数Newff的使用方法.doc(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、新版Matlab中神经网络训练函数Newff的使用方法一、 介绍新版newffSyntax net = newff(P,T,S1 S2.S(N-l),TF1 TF2.TFNl, BTF,BLF,PF,IPF,OPF,DDF)Descriptionnewff(P,T,S1 S2.S(N-l),TF1 TF2.TFNl, BTF,BLF,PF,IPF,OPF,DDF) takes several argumentsPR x Q1 matrix of Q1 sample R-element input vectorsTSN x Q2 matrix of Q2 sample SN-element ta
2、rget vectorsSiSize of ith layer, for N-1 layers, default = .(Output layer size SN is determined from T.)TFiTransfer function of ith layer. (Default = tansig forhidden layers and purelin for output layer.)BTFBackpropagation network training function (default = trainlm)BLFBackpropagation weight/bias l
3、earning function (default = learngdm)IPFRow cell array of input processing functions. (Default = fixunknowns,removeconstantrows,mapminmax)OPFRow cell array of output processing functions. (Default = removeconstantrows,mapminmax)DDFData divison function (default = dividerand)ExamplesHere is a problem
4、 consisting of inputs P and targets T to be solved with a network. P = 0 1 2 3 4 5 6 7 8 9 10;T = 0 1 2 3 4 3 2 1 2 3 4;Here a network is created with one hidden layer of five neurons. net = newff(P,T,5);The network is simulated and its output plotted against the targets. Y = sim(net,P);plot(P,T,P,Y
5、,o)The network is trained for 50 epochs. Again the networks output is plotted. net.trainParam.epochs = 50;net = train(net,P,T);Y = sim(net,P);plot(P,T,P,Y,o)二、 新版newff与旧版newff调用语法对比Example1比如输入input(6*1000),输出output为(4*1000),那么旧版定义:net=newff(minmax(input),7,1,tansig,purelin,trainlm);新版定义:net=newff(i
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 新版 Matlab 神经网络 训练 函数 Newff 使用方法
限制150内