Plotting MSE of Validation and Testing Data during training of ANN

3 ビュー (過去 30 日間)
Sam harris
Sam harris 2012 年 9 月 14 日
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 Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by