各位大虾,我在网上看到的教程里的一个程序段,本来想要试试看的: a'3|EWS
?
net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); Rs*]I\
net.trainParam.show = 50; xz5V.
net.trainParam.lr = 0.05; 9p|;Hh:
net.trainParam.epochs = 300; OEMYS I%
net.trainParam.goal = 1e-5; Wx~N1+
p = [-1 -1 2 2;0 5 0 5]; S3Q^K.e?
t = [-1 -1 1 1]; AXbDCDA
net=train(net,p,t); 2Fwp\I;
TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 =QG@{?JTl
TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 3-^z<*
TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 pGS!Nn;K2
TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 ']]Czze
TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10 9eG{"0)
TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 :xqhPr]e
TRAINGD, Performance goal met. UEkn@^&bg
a = sim(net,p) K9\p=H^T7
plot(p,t,p,a,'o') t]dtBt].:
但是为什么老是报错: v D"4aw
??? Input argument "net" is undefined. ~cC=DeX