문제

When training a nn using trainbr like this:

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 );

How do I obtain the number of epohcs/iterations that has been run before max mu has been reached?

Cheers

도움이 되었습니까?

해결책

I would use the newer FEEDFORWARDNET instead of the old NEWFF.

You can get the training record as a second argument from TRAIN:

[net,tr] = train(net,inputs_train,outputs_train);
tr.num_epochs
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top