How can I turn off the training status figure when I use the TRAIN function in the Neural Network Toolbox?

4 views (last 30 days)
When I execute the following example:
p = [0 1 2 3 4 5 6 7 8];
t = [0 0.84 0.91 0.14 -0.77 -0.96 -0.28 0.66 0.99];
net = newff([0 8],[10 1],{'tansig' 'purelin'},'trainlm');
net.trainParam.epochs = 50;
net.trainParam.goal = 0.01;
net = train(net,p,t);
the TRAIN function creates a figure displaying its progress. I would like to turn off this graphical display.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
To turn off the training status figure while training a neural network using the TRAIN function, set the "trainParam.show" property of the network structure to "NaN".
net.trainParam.show = NaN;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!