Which epoch is the training result of the train function
조회 수: 2 (최근 30일)
이전 댓글 표시
I see a strange (training) performance degradation at the moment in a neural network structure that I am using. Quick question:
What epoch does the trained network that the train function returns belong to? Always the best epoch? or the very last one? Because currently I see the best epoch somewhere in the middle of my training and then the performance decreases significantly. If the very last epoch was output, then I know why my performance is decreasing.
댓글 수: 0
채택된 답변
Rohit Pappu
2020년 8월 31일
The train function returns the last epoch by default. This behaviour can be modified by using the ValidationPatience argument under training option. There are some examples demonstrating the use of the of training option which can be accessed here.
추가 답변 (1개)
David Franco
2020년 8월 31일
For a shallow neural network you can use the code:
net.trainParam.max_fail = x
where x is the number of fails in increase the performance.
This is the validation fail parameter. The default value is 6.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!