![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/515252/image.png)
Monitor Deep Learning Training Progress
11 views (last 30 days)
Show older comments
In MATLAB R2020b, when I use trainingOptions to set up network, MATLAB cannot create a figure of training progress.
By the way, I specify 'Plots' to 'Training-Progress', but it doesn't show the figure like the below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/512597/image.png)
I never see this kind of figure during training progress.
So what is the problem? Is it a bug?
0 Comments
Accepted Answer
Rohit Pappu
on 10 Feb 2021
digitDatasetPath = fullfile(matlabroot,'toolbox','nnet','nndemos','nndatasets','DigitDataset');
imds = imageDatastore(digitDatasetPath, 'IncludeSubfolders',true,'LabelSource','foldernames');
numTrainFiles = 750;
[imdsTrain,imdsValidation] = splitEachLabel(imds,numTrainFiles,'randomize');
inputSize = [28 28 1];
numClasses = 10;
layers = [
imageInputLayer(inputSize)
convolution2dLayer(5,20)
batchNormalizationLayer
reluLayer
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];
options = trainingOptions('sgdm', ...
'MaxEpochs',4, ...
'ValidationData',imdsValidation, ...
'ValidationFrequency',30, ...
'Verbose',false, ...
'Plots','training-progress');
net = trainNetwork(imdsTrain,layers,options);
I was able to view the training progress
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/515252/image.png)
Please crosscheck the spellings of Name Value pairs in trainingOptions
0 Comments
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!