How to get validation test and training errors of a neural network?

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);

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

BOTH documentation commands

help patternnet
and
doc patternnet

have the following sample code for CLASSIFICATION & PATTERN-RECOGNITION:

[x,t] = iris_dataset;
net = patternnet(10);
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,t,y);
classes = vec2ind(y);

However, the following are missing

1. Dimensions of x and t 
2. Plots of x, t, and t vs x
3. Minimum possible number of hidden nodes
4. Initial state of the RNG (Needed for duplication)
5. Training record, tr

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

BitPost : A brief history of machine learning through time

Journey to Deep Learning — What mistakes did I make before starting my career in Deep Learning?

35 Words About Uncertainty, Every AI-Savvy Leader Must Know

AI Probability

How can I change a cell array with timepoints in to a continous

Building Banking Chatbots With Finn AI

RAPIDS cuGraph — The vision and journey to version 1.0 and beyond

ICLR Reproducibility Interview #4: Aniket Didolkar

Tuning and Training Machine Learning Models Using PySpark on Cloud Dataproc

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

How to do Matrix Multiplication in Python — Codewars

How to Read Data Values Separated by Blanks Using the SAS infile Statement

The transformational shift of the time!