I am running a script which uses the 'trainlm' neural net training algorithm multiple times. It time that it runs it stops when it has not improved for 7 epochs. It then, it seems, provides the model for that last epoch (epoch 'n'), not the best fitting model from epoch n-7, which often is substantially better. Is this correct and is there any way to get the model from the best fitting epoch?
MATLAB: Getting best fitting model when using trainlm
Deep Learning Toolboxtrainlm
Best Answer