使用trainbr训练nn时:
net = newff( inputs_train, outputs_train, layers, { 'tansig', 'purelin' }, 'trainbr' );
net.trainParam.goal = 0.0;
net.trainParam.show = 1;
net.trainParam.epochs = ephocs;
net = train( net, inputs_train, outputs_train );
如何获得在达到max mu之前运行的epohcs / iterations的数量?
干杯
答案 0 :(得分:2)
我会使用较新的FEEDFORWARDNET而不是旧的NEWFF。
您可以从TRAIN获取培训记录作为第二个参数:
[net,tr] = train(net,inputs_train,outputs_train);
tr.num_epochs