各位大虾,我在网上看到的教程里的一个程序段,本来想要试试看的: j8aH*K-l{
net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); AGKT* l.-
net.trainParam.show = 50; "c.-`1,t
net.trainParam.lr = 0.05; y=Z[_L!xr
net.trainParam.epochs = 300; .{|SKhXk
net.trainParam.goal = 1e-5; %(]B1Zg6,
p = [-1 -1 2 2;0 5 0 5]; YL78cWOs
t = [-1 -1 1 1]; HTMg{_r(%
net=train(net,p,t); W|"bV 6d3
TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 5\h 6'
TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 vU(fd!V ?
TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 /1$u|Gs
*
TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 .gt;:8fw{
TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10 BzV97'
TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 J _q
TRAINGD, Performance goal met. pG'?>]Rt4
a = sim(net,p) y]+[o1]-c
plot(p,t,p,a,'o') V]m}xZ'?^
但是为什么老是报错: |gHdTb1
??? Input argument "net" is undefined. fjY:u,5V_