How not to normalize the data in patternnet function and how to do K-fold cross validation technique?

Technical Source
2 min readJul 15, 2021

--

I want to do classification using ANN ‘patternnent’ function. I am new to ANN. I have already normalised data and also divided into train and test dataset. Further, I want to divide train data into three equal parts and perform cross-validation technique, later I want to apply the best model on test dataset to calculate the accuracy. I am unable to understand how to use the ‘patternnet’ and other functions and complete the task the way I want. Could you please help me out? Thank you.

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.

The optimal approach is to learn the best way to take advantage of existing MATLAB functions and structure. Although it is not necessarily the approach that you proposed, it is no less valid.

For example, by default, MATLAB NN design functions automatically

1. Normalize input and target data    2. Divide the data into training, validation and test subsets. 3. Initialize default parameter settings including random initial 
weights
4. Train the net until one of several conditions occur. For example
a. Training subset error is reduced to a specified level
b. Validation subset error increases continually for a
specified number (default = 6) of epochs
c. A maximum number (default = 1000) of epochs is reached.
5. Use the target normalization parameters to
unnormalize the output data
6. Calculate the performance measure

Simple examples are given in the help and doc documentation examples obtained using the commands

help patternnet

and….

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by 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.

No responses yet