Why does the neural network training end before reaching the specified maximum number of epochs?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 9 Nov 2017
Modifié(e) : MathWorks Support Team
le 7 Sep 2021
Why does the neural network training end before reaching the specified maximum number of epochs?
This is how I am setting the training option:
options = trainingOptions('sgdm', 'MiniBatchSize',miniBatchSize,'MaxEpochs',4000)
But, it looks like the training ended without reaching the max epoch. Is this normal? And what will actually affect the total epoch number in the training?
Réponse acceptée
MathWorks Support Team
le 18 Août 2021
Modifié(e) : MathWorks Support Team
le 7 Sep 2021
There are many parameters that can cause a neural network to stop training.
As you may know, an epoch is the full pass of the training algorithm over the entire training set. In general, the training will stop before reaching the specified maximum number of epochs to avoid overfitting to the data, thus improving the network generalization. That is, the training will stop if the results of the cross validation are not getting any better (within some tolerance).
Please refer to the following link for more information on the early stopping behavior to improving generalization of the network:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!