training progress graph of 'trainNetwork'

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 日

5 投票

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 件のコメント

Deepak Sivadas
Deepak Sivadas 2019 年 2 月 19 日
Please address the issues below,
h= findall(groot,'Type','Figure ');
creates --- 0x0 graphicsPlaceholder and
h.MenuBar = 'figure ';
returns error message : Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.
Areej Varamban Kallan
Areej Varamban Kallan 2019 年 2 月 20 日
Hi Deepak,
Please make sure that the figure is open. Which version of MATLAB are you using?
Deepak Sivadas
Deepak Sivadas 2019 年 5 月 16 日
Hi Areej,
how to save it as fig window? Your earlier suggestions did not work.
[Matlab 2018a]
z xu
z xu 2020 年 7 月 27 日
Great! It's helpful. Thanks buddy !👍
Asif Mehmood
Asif Mehmood 2020 年 10 月 14 日
@Areej Varamban Kallan, Thanks!
Your method worked for me, and I am using MATLAB 2020a.
nedim moglu
nedim moglu 2021 年 4 月 1 日
編集済み: KSSV 2021 年 6 月 28 日
Hi,@Areej Varamban Kallan,
h= findall(groot,'Type','Figure');
h.MenuBar = 'figure';
while only Deep Learning Training Progress figure is open I used advised codes.after
>>
h.MenuBar = 'figure';
I get the error like this:
Functionality not supported with figures created with the uifigure function. For more
information, see Graphics Support in App Designer.
Do you have any idea about this error.
I have Matlab 2020b
Fatma Diab
Fatma Diab 2021 年 11 月 11 日
I have the same problem. Can you help me to solve this error please?
Functionality not supported with figures created with the uifigure function.
Towfeeq Fairooz
Towfeeq Fairooz 2022 年 1 月 17 日
編集済み: Towfeeq Fairooz 2022 年 1 月 17 日
It would have been easier if that worked as per the help provided by some user. Check the video (MATLAB 2020a)
But looks like it does not work the same way in MATLAB 2020b and it gives error : 'Functionality not supported with figures created with the uifigure function'.
uifigure MenuBar is not yet enabled in this version . @MathWorks Support Team can you please fix that. It would be easier to export the figures and can make life easier. Thank you.
in my application, I used exportapp function :
[net,info]=trainNetwork(...);
currentfig = findall(groot, 'Tag', 'my_CNN_trainingPlot_uifigure') ;
%savefig(currentfig,'CNN_trainingplot1.fig');
exportapp(currentfig,'CNN_tainingplot2.pdf');
it worked for me. Hope it helps
Can export as '.png' file too.
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 日

0 投票

Thankyou. This was exactly what I needed. Works perfectely !!!!
Amit DOegar
Amit DOegar 2020 年 6 月 18 日

0 投票

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 日

0 投票

you can use the data from working space and plot one more picture for yourself.

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2019 年 2 月 1 日

コメント済み:

2022 年 7 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by