Command line Neural Network training stopping after 0 iterations
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Mary Abbott
2017-11-17
In some versions of MATLAB, if a neural network is trained normally with the Training Tool GUI, the training is stopped or cancelled by the user, and then the user tries to train with command-line only output, training stops at epoch 0. I have forwarded the details of this issue to our development team so that they can investigate it further. To correct the behavior, please use one of the following workarounds:
1. Train any neural network through the GUI and allow the training to complete. This can be a simple example such as the one given in the documentation for "feedforwardnet":
https://www.mathworks.com/help/nnet/ref/feedforwardnet.html
After the training has completed, you should be able to train networks with the GUI disabled.
2. Restart MATLAB.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!