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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Peter Mbamaluikem
el 18 de Ag. de 2017
Comentada: Peter Mbamaluikem
el 19 de Ag. de 2017
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.
0 comentarios
Respuesta aceptada
Greg Heath
el 19 de Ag. de 2017
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Data Workflows en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!