training progress graph of 'trainNetwork'

조회 수: 83 (최근 30일)
Deepak Sivadas
Deepak Sivadas 2019년 2월 1일
댓글: Qiaohui He 2022년 7월 5일
Hi,
I am using trainNetwork function in deep neural network toolbox.
A graph appears automatically appears showing training progress. I like to know how can the plot styles (say, color, label size) be modified by user?
Also it is of interest to save the plot for future reference. But unlike matlab figure window, it doesnot allow that also.
Pls inform me on how to access and modify settings in training progress graph.
Thanks,
Deepak

답변 (4개)

Areej Varamban Kallan
Areej Varamban Kallan 2019년 2월 8일
Hi Deepak,
Please try the following:
  1. After the training is complete, close all the figures except the training plot.
  2. Execute the following commands on MATLAB command line:
h= findall(groot,'Type','Figure');
h.MenuBar = 'figure';
The training plot will now have a menu bar.
3. Click Edit-> Figure Properties. This will open the Poperty Editor window.
4. Use the options in the Property Editor window to change plot styles.
5. Similary, you can save the figure from 'File->Save'
To hide the menu bar, execute the following command on MATLAB command line:
h.MenuBar = 'none';
I hope this helps.
  댓글 수: 10
kh rezaee
kh rezaee 2022년 4월 15일
편집: kh rezaee 2022년 4월 15일
I appreciate your response, Areej Varamban Kallan. In the 2020 version, I was able to edit the output after I used your command for training progress figure. However, I am unable to edit the figure in version 2022, and I receive the following error message. Is there a way to make the menu appear?
Functionality not supported with figures created with the uifigure function.
Qiaohui He
Qiaohui He 2022년 7월 5일
Maybe u can try
[net tr] = trainNetwork(XTrain,YTrain,layers,options);
save(tr)
and the 'tr'will store the data of the training process. Then the data in workspace of tr.mat could be applied to use plot function.

댓글을 달려면 로그인하십시오.


avi.loey
avi.loey 2019년 7월 31일
Thankyou. This was exactly what I needed. Works perfectely !!!!

Amit DOegar
Amit DOegar 2020년 6월 18일
h= findall(groot,'Type','Figure');
h.MenuBar = 'figure';
How to do this for multiple open figures as in k-fold we need to save all plots
or how to get handle of all open figures in matlab
  댓글 수: 1
krishna Chauhan
krishna Chauhan 2020년 7월 19일
Hey Amit
How are you able to see what cross validation its training?
I mean where to assign cross k validation in trainNetwork?

댓글을 달려면 로그인하십시오.


Xiao Liu
Xiao Liu 2021년 7월 18일
you can use the data from working space and plot one more picture for yourself.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by