'trainingOptions' without 'trainNetwork' in deep learning

1 vue (au cours des 30 derniers jours)
feynman feynman
feynman feynman le 3 Déc 2022
options = trainingOptions("sgdm", Plots="training-progress")
sets training options. This setting works when training is implemented via:
net = trainNetwork(layers,options)
But if training is implemented via the following instead:
for epoch=1:MaxEpochs
...
[net,velocity] = sgdmupdate(net,grad,velocity);
...
end
does 'trainingOptions' still take effect without 'trainNetwork'?

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Déc 2022
No. trainNetwork knows to use the options because you pass the options in. sgdmupdate does not permit you to pass in options so there is no way for it to know which option to use.
The options are not stored as part of the network.
  2 commentaires
feynman feynman
feynman feynman le 3 Déc 2022
thanks so much. Then with 'sgdmupdate' or 'adamupdate', one can only specify training options by normal programming lines of code written by themselves rather than a structured function like 'trainingOptions'?
Walter Roberson
Walter Roberson le 3 Déc 2022
Modifié(e) : Walter Roberson le 3 Déc 2022
sgdmupdate and adamupdate do not have any named options.

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by