Windows Crashing during NN training
7 次查看(过去 30 天)
显示 更早的评论
Hello folks,
I am writing here because I have a problem with the Neural Network toolbox: during training I have had several crashes of Windows (BSOD). It also just not crash, it freezes on the "sad-smile blue screen" and I have to force the restart manually.
Apparently, the problem regards the for loop that I am doing to test the performance of the network depending on its hidden layer. I am doing something like this...
for h = H
for k = 1:K
% K-Fold Cross-Validation (K=10)
% ANN definition
net = fitnet(h,'trainbr');
net = configure(net,inputs',targets');
net.layers{1}.transferFcn = 'tansig';
net.divideParam.trainRatio =1;
net.divideParam.valRatio = 0;
net.divideParam.testRatio = 0;
net.performFcn = 'mse';
disp(' Training...')
% ANN training
[net,tr] = train(net,inputs',targets');
% Performance evaluation, MSE.
% ...
end
end
What's wrong? TIA
2 个评论
Greg Heath
2017-12-8
Size of inputs, targets, H and K?
Does the code work on the MATLAB EXAMPLE datasets?
help nndatasets
doc nndatasets
回答(1 个)
Petorr
2018-7-3
Try closing the figure. I am getting a matlab crash (win7, r2017b) on the next train() call if I don't close the previous training progress figure. For some reason the figure is hidden (see here) so it doesn't turn up with gcf(), but you can get the handle with:
findall(0,'Type','Figure','Tag','NNET_CNN_TRAININGPLOT_FIGURE');
- Peter
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!