Plotting MSE of Validation and Testing Data during training of ANN

3 次查看(过去 30 天)
Hi,
Is it possible to plot the MSE of the Validation data and Testing Data during the actual training of an ANN? I think I have a problem of overtraining and want to know the best time to manually stop the training. Alternatively is there a method to load the weights etc from an old epoch obtained during training?
Many Thanks

采纳的回答

Greg Heath
Greg Heath 2012-9-15
编辑:Greg Heath 2012-9-15
What version of the NN toolbox are you using? The latest versions have
fitnet for regression or curvefitting
patternnet for classification and pattern recognition
The previous versions were newfit and newpr, respectively.
All versions have a default trn/val/tst (0.7/0.15/0.15) random division option for validation stopping(val) and unbiased prediction(tst). Various other combinations of data division types and percent ratios are available via overwriting the defaults.
lookfor divide
Another way to avoid overtraining an overfit net is to make sure the number of output training equations Neq = prod(size(targets)) = O*N is significantly larger than the number of unknown weights Nw = net.numWeightElements = (I+1)*H+(H+1)*O for an I-H-O FFMLP.
Neq >> Nw ==> H << (Neq-O)/(I+O+1)
Hope this helps.
Thank you for officially accepting my answer(;>)
  1 个评论
Sam harris
Sam harris 2012-9-15
Thanks for you help Greg, I'll check the number of output training equations and see how it goes.
thanks,
Sam

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by