Command line Neural Network training stopping after 0 iterations
Show older comments
I'm a bit stuck. I have some fairly large files which my ANN is training from and so I am using a grid computer to process to complete the ANN training in parallel using the significant resources this computer provides, however it runs MATLAB through command line. I have tested the code in the GUI and it works when
net.trainParam.showWindow = true;
but when I use
net.trainParam.showWindow = false;
net.trainParam.showCommandLine = true;
it stops at epoch 0 with
Training Feed-Forward Neural Network with TRAINSCG.
Epoch 0/50000, Time 0.22634, Performance 0.82729/0, Gradient 0.90148/1e-06, Validation Checks 0/300
Training with TRAINSCG completed: User stop.
Once I begin the run, I am not providing any commands or touching my computer at all, it will just auto-stop.
So if I run through the GUI, it iterates fine, but I don't have this option while processing through the grid computer as I control it only via SSH, so I need the project to run as per normal without the Neural Net window.
Any help is appreciated.
5 Comments
Mary Abbott
on 2 Nov 2017
Are you running (and possibly cancelling) any training before switching to the command line?
Also, which version of MATLAB are you using?
Michael Kitselaar
on 3 Nov 2017
Edited: Michael Kitselaar
on 3 Nov 2017
Mary Abbott
on 3 Nov 2017
I am able to reproduce this by starting to train a network with the GUI open, but then clicking "Stop Training" before it is done. After that, training any new network through the command line stops at epoch 0.
The behavior was corrected by either restarting MATLAB or allowing any network to complete training with the GUI open. Do either of these work for you?
Michael Kitselaar
on 5 Nov 2017
Edited: Michael Kitselaar
on 6 Nov 2017
Moritz Hesse
on 28 Mar 2019
This is still happening in 2018b
Accepted Answer
More Answers (0)
Categories
Find more on Define Shallow Neural Network Architectures in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!