I want to stop, check and restart an ongoing feedforward neural net.

조회 수: 2 (최근 30일)
Pappu Murthy
Pappu Murthy 2021년 7월 26일
Suppose i am training a network with net = train(net,x,t) where x inputs, and t targets.
let us say I want to check how well the network is performing at the end of 500 epochs, 1000 epochs etc.
I can manually stop after 500 epochs. and if i am not happy with result i want to further train till 1000 epochs without losing all the previous training. What are the exact steps involved to restart the network from where I left off. I am not adding any thing new by way of data. Everything should remain same but I should be able to continue training further.
Thanks in advance

답변 (1개)

Harikrishnan Balachandran Nair
Harikrishnan Balachandran Nair 2021년 7월 29일
From my understanding, you want to restart training your network, if it is interrupted in between or you manually stop the process. A possible workaround for this would be to automatically save intermediate checkpoints during the training.
As an example, you can use the following line of code to store the intermediate checkpoints in the file ‘mycheck.mat’ .
net = train(net,x,t,'CheckpointFile','mycheck.mat');
Additionally, you can specify the 'CheckpointDelay' value which decides the frequency at which the checkpoints are stored.

카테고리

Help CenterFile 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!

Translated by