各位大蝦,我在網(wǎng)上看到的教程里的一個程序段,本來想要試試看的: `+lHeLz':
net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); ~d{.ng 4K
net.trainParam.show = 50; nm$Dd~mxW1
net.trainParam.lr = 0.05; HJ?+A-n/
net.trainParam.epochs = 300; B
(/U3}w-
net.trainParam.goal = 1e-5; 39U5jj7i
p = [-1 -1 2 2;0 5 0 5]; Oh.ZPG=
t = [-1 -1 1 1]; T@wcHg
net=train(net,p,t); M
x5`yT7
TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 (LvS
:?T}
TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 _,Fny_u=;
TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 m4k
Bj*6c{
TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 I|oT0y&
TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10 <HWS:'1
TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 wyx(FinIH
TRAINGD, Performance goal met. IJOvnZ("A
a = sim(net,p) n;HHogA
plot(p,t,p,a,'o') _s,ao'/
但是為什么老是報錯: %sh>;^58P
??? Input argument "net" is undefined. ymY1o$qWB}