各位大虾,我在网上看到的教程里的一个程序段,本来想要试试看的: I$y6N"|
net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); \jpm
net.trainParam.show = 50; \3hj/
net.trainParam.lr = 0.05; G~+BO'U9'G
net.trainParam.epochs = 300; v'e5j``=
net.trainParam.goal = 1e-5; ob_*fP
p = [-1 -1 2 2;0 5 0 5]; 0K<|>I
t = [-1 -1 1 1]; \*+-Bm:$j
net=train(net,p,t); P}re"<MD
TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 \RF{ITV$kD
TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 Lu.C+zgQ
TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 AE@N:a
TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 3UNmUDl[~
TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10 /QW-#K|S&
TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 \i.Yhl:O
TRAINGD, Performance goal met. ?= RC?K
a = sim(net,p) nYb{?{_ca8
plot(p,t,p,a,'o') q(XO_1W0V
但是为什么老是报错: K;'s+ZD
??? Input argument "net" is undefined. /@O$jlX5I