各位大蝦,我在網(wǎng)上看到的教程里的一個程序段,本來想要試試看的: !irX[,e
net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd'); )ejXeg
net.trainParam.show = 50; dn)tP6qc/
net.trainParam.lr = 0.05; 1z};"A
net.trainParam.epochs = 300; Y%?!AmER
net.trainParam.goal = 1e-5; QhE("}1
p = [-1 -1 2 2;0 5 0 5]; ^K77V$v
t = [-1 -1 1 1]; RSWB!-
net=train(net,p,t); ;cm{4%=Iqe
TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10 1(;33),P8
TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10 #Mem2cz
TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10 Kt* za
TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10 i2ml[;*,N
TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10
4qSS<SqY
TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10 ^%*{:0'
TRAINGD, Performance goal met. &A5[C{x
a = sim(net,p) h&)vdCCk
plot(p,t,p,a,'o') MTITIecw=
但是為什么老是報錯: ://|f
??? Input argument "net" is undefined. fN*4(yw