Getting best fitting model when using trainlm

조회 수: 10 (최근 30일)
Walter Johnson
Walter Johnson 2018년 6월 2일
댓글: Walter Johnson 2018년 6월 3일
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?

채택된 답변

Greg Heath
Greg Heath 2018년 6월 2일
편집: Greg Heath 2018년 6월 2일
Early stopping ONLY depends on the 15% validation subset performance. NOT on the 70% training or 15% testing performance.
Increasing val set error is proof that the net is not generalizing well to nontraining data.
Since the decreasing improvement neither refers to the 70% training or 15% testing subset, there is no proof that there is a need to back up.
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Walter Johnson
Walter Johnson 2018년 6월 3일
Thanks Greg. That is clear and should have been obvious.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by