数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 4883|回复: 7

求助:哪位大虾帮帮忙啊?谢谢!

[复制链接]
发表于 2005-12-8 18:56:00 | 显示全部楼层 |阅读模式
<>哪位大虾可以帮小女子看看下面的程序呀?</P>
<>p=[307 287 258 151 274 364 430 331 291 188 250 254 239 426 315 370 376 273 256 344 260 252 389 312 181 314 313 228 620 490 466 254 311;<BR>   246 248 230 154 236 338 274 221 230 166 234 241 233 296 263 295 211 244 214 302 230 245 378 248 152 294 280 198 362 321 260 196 280;<BR>0.2874  0.2006  0.2696  0.3213  0.2631  0.2026  0.2734  0.2480  0.2164  0.3512  0.2981  0.2828  0.3438  0.2023  0.1906  0.2025  0.2134  0.2164  0.2422  0.2027  0.2828  0.2828  0.1859  0.2133  0.3061  0.1887  0.1909  0.2529  0.1548  0.2243  0.2760  0.2941  0.2343; <BR>0.2874  0.2006  0.2696  0.3213  0.2631  0.1887  0.2734  0.2480  0.2164  0.3512  0.2981  0.2828  0.3438  0.1787  0.1906  0.1811  0.2134  0.2164  0.2340  0.1887  0.2828  0.2828  0.1764  0.2133  0.3061  0.1723  0.1791  0.2529  0.1548  0.1958  0.2760  0.2941  0.2343; <BR>0.902  0.495  0.763  0.737  0.870  0.553  1.060  0.747  0.587  0.938  0.830  0.743  0.747  0.535  0.583  0.350  0.648  0.445  0.580  0.552  0.823  0.738  0.535  0.498  0.965  0.318  0.358  0.440  0.535  0.732  1.127  1.097  0.653 ;<BR>2.8 1 2 1 2 2 2.6 1.667 1.333 2 2.25 2 1 1.667 1.5 1.33 1.94 1 1 1.67 2 2 1 2.08 1 1 1 1 2.8 2.8 3.12 1.67 2.6;<BR>296 142 235 212 237 178 341 223 150 290 284 262 249 180 161 165 186 162 184 173 259 262 163 167 233 138 134 180 195 261 403 276 212;<BR>96.55  78.69  88.44  73.98  89.43  90.50  104.40  91.91  81.41  85.83  92.30  91.03  96.46  93.49  80.08  88.31  89.14  80.69  81.03  86.99  90.75  91.18  90.78  84.25  76.15 79.90  79.93  78.87  98.23  103.68  108.08  89.29  90.67;<BR>145.51  157.70  119.67  132.71  117.00  157.56  124.62  142.96  132.63  147.07  132.88  151.11  117.99  134.21  167.91  221.02  480.86  163.25  107.85  156.04  158.11  158.11  209.12  147.36  8.35  162.15  170.85  171.20  260.63  149.37  165.50  82.82  125.50; <BR>145.51  157.70  119.70  132.70  117.00  406.80  124.60  143.00  132.60  147.10  132.90  151.10  118.00  385.95  167.90  419.04  480.90  163.20  104.17  417.64  158.10  158.10  445.42  147.36  8.35  423.66  423.51  171.20  260.63  388.33  165.50  395.20  90.67]</P>
<>t=[134.8  296.5  96.5  412.6  118.4  219.0  44.2  189.1  378.0  169.8  81.2  210.2  141.9  213.3  206.0  85.2  318.8  259.4  201.6  202.8  150.3  154.3  254.0  408.9  259.6 439.4  445.0  287.8  75.8  94.6  92.7  189.9  221.0]; </P>
<P>pp=[318 294   299 401  358;<BR>284  276  303  332  263;<BR>0.2197  0.2385  0.2340  0.1907  0.2264;<BR>0.2197  0.2385  0.2026  0.1907  0.2264;<BR>0.616 0.696 0.501 0.46 0.696; <BR>2 2.57 1.67 1.67 2.25;<BR>192  214  201  169  214;<BR>88.66  89.79  88.41  91.36  92.33 ;<BR>204.31  215.52  230.95  250.39  237.44; <BR>204.31  215.52  410.00  250.39  237.44]; </P>
<P>tt = [247.4 283.4 199.2 99.3 286.4]; </P>
<P>LearnRate = 0.01;<BR>LearnGoal = 0.01;<BR>LearnEpoch = 4000;<BR>HiddenLayer = 3;<BR>OutputLayer = 1;</P>
<P>[pred,cv,net,TR,R2] = fuc_training(p,t,pp,tt,LearnRate,LearnGoal,LearnEpoch,HiddenLayer,OutputLayer);</P>
<P>a=0;<BR>[Save_or_not]=SaveDlg(a);<BR>switch Save_or_not<BR>case 'Yes',<BR>        save qq p t net TR R2 pred pp tt;%DemoResult is the filename to be saved<BR>    otherwise<BR>end</P>
<P>function [pred,cv,net,TR,R2]=fuc(p,t,pp,tt,speed,goal,epoch,hiden_layer,output_layer)</P>
<P>%preprocessing the input vectors<BR>[p,meanp,stdp] = prestd(p);<BR>[p,transMat] = prepca(p,0.02);<BR>[p,minp,maxp,t,mint,maxt]=premnmx(p,t);<BR>pp = trastd(pp,meanp,stdp);   <BR>pp = trapca(pp,transMat);<BR>pp =tramnmx(pp,minp,maxp);<BR>Pt = minmax(p);<BR>net=newff(Pt,[hiden_layer output_layer],{'tansig','purelin'},'trainlm');<BR>fprintf('\n\n');<BR>echo off ;<BR>net.trainParam.lr=speed;<BR>net.trainParam.epochs=epoch;<BR>net.trainParam.goal=goal;<BR>net.trainParam.min_grad=1e-15;<BR>net.trainParam.show=500;<BR>%net.trainParam.max_fail=100;<BR>%net.trainParam.mem_reduc=10;<BR>[net,TR] = train(net,p,t);<BR>pred = sim(net,pp);<BR>pred = postmnmx(pred,mint,maxt);<BR>cv = (pred-tt)./tt;<BR>R = corrcoef(pred,tt);<BR>%R2 = R(1,2);<BR>%[row,vol] = size(tt);</P>
<P>fprintf('\nthe predicted value is ');<BR>fprintf('%12.4f',pred);<BR>fprintf('\nthe measured value is  ');<BR>fprintf('%12.4f',tt);<BR>fprintf('\n  the error is         ');<BR>fprintf('%12.4f',cv);<BR>%fprintf('\nthe correlate coefficient is %6.4f', R2);</P>
<P><BR>pic(tt,pred,R);</P>
<P><BR>function =Save_Dlg(a)<BR>s=questdlg('是否保存训练结果?','保存训练结果','Yes','No','No');</P>

<P>我想把里面的P矩阵换成下面的数据:</P>
<P>p=[2616 810.33 485.33 4450.33;<BR>   1.3748 1.3205 1.239 1.1276;<BR>  45 85 18 22; <BR>  0.3 0.39 0.46 0.72];</P>
<P>t=[4.9 5.9 4.0 6.5;<BR>   4.5 5.3 3.6 6.1;<BR>   4.6 5.5 3.6 6.0;<BR>   2.3 2.2 2.7 3.6;<BR>   2.4 2.0 3.7 5.1;<BR>   2.4 2.8 3.9 5.4]; </P>
<P>pp=[1974.67;<BR>1.1948;<BR>15;<BR>0.62]; </P>
<P>tt = [6.9;<BR>    6.2;<BR>    6.2;<BR>    4.3;<BR>    4.9;<BR>    5.2]; </P>

<P>明明已经换了,可为什么出来的结果还是预测的原来的数据的值呢???是不是要建立一个叫做“MATLAB data file"的文件呢?这个文件在哪里创建呢?</P>
<P>还有一个问题就是我只有四个样本,是不是对于神经网络预测来说太少了呢?</P>
<P>哪位高手明白,请帮帮忙吧!谢谢呀!!</P>
<P>或者直接回复到我的邮箱<a href="mailtjjpurple120@tom.com" target="_blank" >jjpurple120@tom.com</A>也可以,谢谢!!</P>
发表于 2005-12-8 19:34:38 | 显示全部楼层
应该是由于样本少的原因!!样本太少用神经网络作预测达不到预期的效果是很正常的。
 楼主| 发表于 2005-12-8 23:07:21 | 显示全部楼层
<>谢谢cai_chong啦!</P>
<>我不仅得不到预期效果,而且得到的不是我后面提到的矩阵里的数据的预测值呀!而是在程序起点处的矩阵P里的数据的预测值,这是为什么呢?</P>[em06]
发表于 2005-12-9 02:15:19 | 显示全部楼层
不是吧?怎么可能呢?
发表于 2005-12-9 02:26:58 | 显示全部楼层
<>p=[2616 810.33 485.33 4450.33;<BR>   1.3748 1.3205 1.239 1.1276;<BR>  45 85 18 22; <BR>  0.3 0.39 0.46 0.72];</P>
<>t=[4.9 5.9 4.0 6.5;<BR>   4.5 5.3 3.6 6.1;<BR>   4.6 5.5 3.6 6.0;<BR>   2.3 2.2 2.7 3.6;<BR>   2.4 2.0 3.7 5.1;<BR>   2.4 2.8 3.9 5.4]; </P>
<>[r,q]=size(p); [s2,q]=size(t);<BR>s1=50;<BR>[w1,b1]=rands(s1,r);<BR>[w2,b2]=rands(s2,s1);<BR>df=3; me=5000; eg=0.0001; lr=0.1; lr_inc=1.05; lr_idec=0.95;mom_const=0.1;err_ratio=1.04;<BR>tp=[df me eg lr lr_inc lr_idec mom_const err_ratio];<BR>[w1,b1,w2,b2,epochs,errors]=trainbpx(w1,b1,'logsig',w2,b2,'purelin',p,t,tp);</P>
<P>pp=[1974.67;<BR>1.1948;<BR>15;<BR>0.62]; <BR>a=simuff(p1,w1,b1,'logsig',w2,b2,'purelin')</P>
<P>你试试看这个能不能运行出来??机子的matlab卸了,不能自己运行看,你自己看看吧!</P>
 楼主| 发表于 2005-12-14 00:34:17 | 显示全部楼层
<>太感谢cai_chong啦!</P>
<>我运行过了,刚开始系统报错说,a=simuff(p1,w1,b1,'logsig',w2,b2,'purelin')中的P1未定义!我想了想,大概你是把PP笔误写成P1了吧?所以我把P1换成了PP,运行能够出来结果了:)</P>
<>但是,好像系统还是会报错的,下面是我运行结果,请cai_chong帮我看看啦,这样是不是还需要修改什么地方呢?</P>
<P> Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4974/5000 epochs, lr = 0.0253016, SSE = 28.5628.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.</P>
<P>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4977/5000 epochs, lr = 0.021693, SSE = 28.5628.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4980/5000 epochs, lr = 0.0239165, SSE = 24.5557.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4983/5000 epochs, lr = 0.0263679, SSE = 24.0959.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR></P>
<P><BR> <BR> <BR></P>
 楼主| 发表于 2005-12-14 00:35:40 | 显示全部楼层
<BR>
<> *WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4992/5000 epochs, lr = 0.0263679, SSE = 27.9393.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4995/5000 epochs, lr = 0.0250495, SSE = 29.8852.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 4998/5000 epochs, lr = 0.0214769, SSE = 29.8852.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LEARNBPM is an obsolete function.<BR>          Use LEARNGDM to calculate new weights and biases.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALIN is an obsolete function.<BR>          Use DPURELIN to calculates PURELIN derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* DELTALOG is an obsolete function.<BR>          Use DLOGSIG to calculates LOGSIG derivatives.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR>TRAINBPX: 5000/5000 epochs, lr = 0.0225507, SSE = 26.3806.<BR> <BR>*WARNING* BARERR is an obsolete function.<BR>          Use BAR to make bar plots.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>TRAINBPX: Network error did not reach the error goal.<BR>  Further training may be necessary, or try different<BR>  initial weights and biases and/or more hidden neurons.<BR> <BR> <BR>*WARNING* SIMUFF is an obsolete function.<BR>          Use NNT2FF and SIM to update and simulate your network.<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* LOGSIG used in an obsolete way.<BR>          Use LOGSIG(NETSUM(Z,B)) instead of LOGSIG(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR> <BR> <BR>*WARNING* PURELIN used in an obsolete way.<BR>          Use PURELIN(NETSUM(Z,B*ones(1,Q))) instead of PURELIN(Z,B).<BR>          Type NNTWARN OFF to suppress NNT warning messages.<BR>  </P>
<>a =</P>
<>    5.1950<BR>    4.4186<BR>    4.2364<BR>    2.4817<BR>    3.2339<BR>    3.3068</P>
<P>&gt;&gt; </P>

<P>谢谢!!!!!×100000000000000000000000000!!!!!</P><BR> <BR>
 楼主| 发表于 2005-12-14 00:36:58 | 显示全部楼层
<>十万火急!!!!!!!请帮帮忙啦!!!谢谢!</P>
<>请你吃冰淇淋吆!呵呵</P>
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-5-15 13:46 , Processed in 0.055744 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表