필터 지우기
필터 지우기

i am training ANN and i want to write the Epoch where the best validation occurred into the workspace. what code can do that?

조회 수: 1 (최근 30일)
I have written the following code % writing into the workspace Table = zeros(5,3); A = 1:5; c = d(i); m = 1; for i = 1:length(A) y1 = c; % c = hiddenLayerSize; y2 = performance; x = ? %value of epochs where the best validation occurred y = [y1 x y2]; Table(m,1:3) = y; m = m + 1; end please, what code will get the Epoch out. see the attached.

채택된 답변

Greg Heath
Greg Heath 2017년 8월 19일
The training record TR contains the complete time history of all 3 subsets.
[ net tr ] = train( net,input,target);
tr = tr % no semicolon
Also check the documentation
help tr
doc tr
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Peter Mbamaluikem
Peter Mbamaluikem 2017년 8월 19일
thanks it actually helped me to get to where am going. the code I used to achieve my goal is this: x = getfield(tr,'best_epoch') Now my next challenge is to get the time corresponding to this epoch. kindly assist. thanks once again

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by