MATLAB Answers

Training-progress Plots not supported for compiled EXE?

9 views (last 30 days)
Jan
Jan on 27 Dec 2019
Commented: Jan on 8 Jan 2020
classOptions = trainingOptions('sgdm', ...
...
'Plots','training-progress');
I have a Deep Learning script that I would like to deploy as an exe.
I get the error message that the training progress plots are not supported.
2 Questions:
a) How can I make a switch inside my program that determines if it is run from within Matlab or from the Exe?
i.e. if "matlab"
'Plots','training-progress');
else
'none','training-progress');
b) the training progress outputs on my screen. How can I capture these numbers in an array, so that I can plot it myself at the end when running the executable version?
thanks!

Accepted Answer

Roshni Garnayak
Roshni Garnayak on 8 Jan 2020
To check if the code is run in the MATLAB mode or deployed mode, use ‘isdeployed’ function. Refer to the following link to know more about the function:
  1 Comment
Jan
Jan on 8 Jan 2020
Thanks Roshni,
that is exactly the command I was looking for.
Very helpful
Jan

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!