I have created and trained a neural network using the following code .I want to know how to get the training testing and validation errors/mis-classifications the way we get using the 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);
Best Answer