各位大蝦,我在網(wǎng)上看到的
教程里的一個
程序段,本來想要試試看的:
1Qk]?R/DN net=newff([-1 2; 0 5],[3,1],{'tansig','purelin'},'traingd');
UKpc3Jo:~ net.trainParam.show = 50;
x@LNjlP net.trainParam.lr = 0.05;
5._1G| 3 net.trainParam.epochs = 300;
X/BcS[a net.trainParam.goal = 1e-5;
%o p = [-1 -1 2 2;0 5 0 5];
P _x(`H t = [-1 -1 1 1];
oAprM Z7Y net=train(net,p,t);
v$)ZoM6E TRAINGD, Epoch 0/300, MSE 1.59423/1e-05, Gradient 2.76799/1e-10
YAP,#a TRAINGD, Epoch 50/300, MSE 0.00236382/1e-05, Gradient 0.0495292/1e-10
i9+qU TRAINGD, Epoch 100/300, MSE 0.000435947/1e-05, Gradient 0.0161202/1e-10
H3>49;` TRAINGD, Epoch 150/300, MSE 8.68462e-05/1e-05, Gradient 0.00769588/1e-10
S
Rb-eDk' TRAINGD, Epoch 200/300, MSE 1.45042e-05/1e-05, Gradient 0.00325667/1e-10
$)#?4v< TRAINGD, Epoch 211/300, MSE 9.64816e-06/1e-05, Gradient 0.00266775/1e-10
@L