When training a network with "trainNetwork", how to keep the trainable parameters from the begining to the end?
2 次查看(过去 30 天)
显示 更早的评论
I want to see the 'sgdm' or 'adam' trace on the loss surface, the network at each iteration is needed? how can I keep the network at each iteration when training?
0 个评论
回答(1 个)
yanqi liu
2021-12-27
yes,sir,may be set options to train,such as
options = trainingOptions('sgdm', ...
'MaxEpochs',20,...
'InitialLearnRate',1e-4, ...
'Verbose',false, ...
'Plots','training-progress');
[tnet,tinfo] = trainNetwork(imdsTrain,layers,options);
after train,we can get the train information in tinfo struct
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!