如何获得神经网络的验证测试和训练错误?

时间:2016-03-16 09:57:04

标签: matlab neural-network

我使用以下代码创建并训练了一个神经网络。我想知道如何使用matlab GUI获得训练测试和验证错误/错误分类。

trainFcn = 'trainscg';  % Scaled conjugate gradient backpropagation.
% Create a Pattern Recognition Network
hiddenLayerSize = 25;
net = patternnet(hiddenLayerSize);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = trainper/100;
net.divideParam.valRatio = valper/100;
net.divideParam.testRatio = testper/100; 
% Train the Network
[net,tr] = train(net,x,t);

0 个答案:

没有答案