大家好,感谢您花时间阅读本文。我有以下代码来训练神经网络:
P = [-1 2 0.5 3];
T1 = 1;
T2 = 2;
T3 = 1.5;
net = newff([-1 3;-1 3;-1 3;-1 3],[2 1],{'logsig' 'logsig'},'traingd');
net.trainParam.epochs = 50;
net.trainParam.lr = 0.6;
%now start to train for the first 50 epochs
[net,Y,E,Pf,Af,tr] = train(net,P',T1)
我希望每个时代都有错误。我训练了我的网络 50 个 epoch,最后它给了我最终的错误,但我想要,但我想要所有的错误!