SlideShare a Scribd company logo
2
Most read
8
Most read
9
Most read
GROUP N0.-7
Rangpal
Prabhat srivastava
Vineet Kumar
Suyash pandey
Vibhav Yadav
NEURAL NETWORK TOOLBOX
GROUP-7
RANGPAL
VINEET KUMAR
PRABHAT SRIVASTAV
SUYASH PANDEY
VIBHAV YADAV
IET LUCKNOW (AKTU)
U. P. 226021
 Artificial neural networks (ANNs) or connectionist
systems are computing systems vaguely inspired by
the biological neural networks that constitute animal
brains.
 Such systems "learn" (i.e. progressively improve
performance on) tasks by considering examples,
generally without task-specific programming. For
example, in image recognition, they might learn to
identify images that contain cats by analyzing example
images that have been manually labeled as "cat" or "no
cat" and using the results to identify cats in other
images. They do this without any a priori knowledge
about cats, e.g., that they have fur, tails, whiskers and
cat-like faces. Instead, they evolve their own set of
relevant characteristics from the learning material that
they process.
Neural Network Toolbox provides algorithms,
pretrained models, and apps to create, train,
visualize, and simulate both shallow and deep neural
networks. You can perform classification, regression,
clustering, dimensionality reduction, time-series
forecasting, and dynamic system modeling and
control.
Basically, there are 3 different layers in a neural
network :-
 Input Layer (All the inputs are fed in the model
through this layer)
 Hidden Layers (There can be more than one
hidden layers which are used for processing the
inputs received from the input layers)
 Output Layer (The data after processing is made
available at the output layer)
# Neural network toolbox
 Collect data
 Create the network — Create Neural Network
Object
 Initialize the weights and biases
 Train the network — Neural Network Training
Concepts
 Validate the network
 Use the network
 1-fitting app
 2-Pattern recognition app
 3-clustering app
 4-time series app
 AEROSPACE
 AUTOMOTIVE
 BANKING
 DEFENCE
 ELECTRONICS
 ENTERTAINMENT
 FINANCIAL
 INDUSTRIAL
 INSURANCE
 MANUFACTURING
 ROBOTICS
 MEDICAL
 SECURITIES
 TELECOMMUNICATION
 FUNCTIONS
 nnstart – neural network getting started GUI
 nftool – neural network fitting tool
 net(view) – view neural network
 net.trainparam.epochs – we can choose how
 many epochs we wants
 net.trainparam.goal – maximum performance
 means we want accuracy
 net.trainparam.lr – learning rate
 net = train(net,x,y) – train network
 To define a fitting problem for the toolbox,
arrange a set of Q input vectors as columns in a
matrix. Then, arrange another set of Q target
vectors (the correct output vectors for each of
the input vectors) into a second matrix . For
example, you can define the fitting problem for
a Boolean AND gate with four sets of two-
element input vectors and one-element targets
as follows:
 inputs = [0 1 0 1; 0 0 1 1]; targets = [0 0 0 1];
 Training –these are presented to the network
dfuring training,and the network is adjusted
according to its error.
 Validation –these are use to measure network
generalization,and to halt training when
generalization stops improving.
 Testing- these are no effect on training and so
provide and independent measure of network
performance during and after training .
cluster is a group of objects that belongs to the same class. In other words, similar
objects are grouped in one cluster and dissimilar objects are grouped in another
cluster.
Clustering is the process of making a group of abstract objects into classes of
similar objects.
The notion of a "cluster" cannot be precisely defined, which is one of the reasons
why there are so many clustering algorithms
The notion of a cluster, as found by different algorithms, varies significantly in its
properties. Understanding these "cluster models" is key to understanding the
differences between the various algorithms. Typical cluster models include:
Apps
Neural Net Clustering Cluster data by training a self-organizing
maps network
Functions
nnstart Neural network getting started GUI
view View neural network
selforgmap Self-organizing map
train Train neural network
plotsomhits Plot self-organizing map sample hits
plotsomnc Plot self-organizing map neighbor connections
plotsomnd Plot self-organizing map neighbor distances
plotsomplanes Plot self-organizing map weight plane
plotsompos Plot self-organizing map weight positions
plotsomtop Plot self-organizing map topology
genFunction Generate MATLAB function for simulating neural
network
#Connectivity models: for example, hierarchical clustering
#Centroid models: for example, the k-means algorithm
#Density models: for
example, DBSCAN and OPTICS defines clusters as
connected dense regions in the data space.
#Subspace Model
#Group Model
#Graph Based Model
#Neural Model
Clusterings can be roughly distinguished as:
#Hard clustering: each object belongs to a cluster or not
#Soft clustering (also: fuzzy clustering): each object belongs
to each cluster to a certain degree (for example, a likelihood
of belonging to the cluster)
 Biology, computational biology and
bioinformatics Ex- Transcryptomics, sequence
analysis, human genetic clustering
 Business and marketing Ex- market research,
Grouping of shopping items
 World wide web Ex- social network analysis,
search result grouping
 Computer science Ex- software evolution,
image segmentation, recommender system
 In addition to function fitting, neural networks are also good at
recognizing patterns.
 For example, suppose you want to classify a tumor as benign or
malignant, based on uniformity of cell size, clump thickness,
mitosis, etc. You have 699 example cases for which you have 9
items of data and the correct classification as benign or malignant.
 As with function fitting, there are two ways to solve this problem:
 Use the nprtool GUI, as described in Using the Neural Network
Pattern Recognition Tool.
 Use a command-line solution, as described in Using Command-
Line Functions.
 It is generally best to start with the GUI, and then to use the GUI
to automatically generate command-line scripts. Before using
either method, the first step is to define the problem by selecting a
data set. The next section describes the data format.
 To define a pattern recognition problem, arrange a set of Q
input vectors as columns in a matrix. Then arrange another
set of Q target vectors so that they indicate the classes to
which the input vectors are assigned (see"Data
Structures" for a detailed description of data formatting for
static and time-series data).
 When there are only two classes; you set each scalar target
value to either 0 or 1, indicating which class the
corresponding input belongs to. For instance, you can define
the two-class exclusive-or classification problem as follows:
 inputs = [0 1 0 1; 0 0 1 1]; targets = [1 0 0 1; 0 1 1 0];
 When inputs are to be classified into N different classes, the
target vectors have N elements. For each target vector, one
element is 1 and the others are 0. For example, the following
lines show how to define a classification problem that
divides the corners of a 5-by-5-by-5 cube into three classes:
 The origin (the first input vector) in one class
 The corner farthest from the origin (the last input vector) in
a second class
 All other points in a third class
 inputs = [0 0 0 0 5 5 5 5; 0 0 5 5 0 0 5 5; 0 5 0 5 0 5 0 5]; targets
= [1 0 0 0 0 0 0 0; 0 1 1 1 1 1 1 0; 0 0 0 0 0 0 0 1];
 Classification problems involving only two classes can be
represented using either format. The targets can consist of
either scalar 1/0 elements or two-element vectors, with one
element being 1 and the other element being 0.
 The next section shows how to train a network to recognize
patterns, using the neural network pattern recognition tool
GUI, nprtool. This example uses the cancer data set
provided with the toolbox. This data set consists of 699 nine-
element input vectors and two-element target vectors. There
are two elements in each target vector, because there are two
categories (benign or malignant) associated with each input
vector.
Time series toolbox
• What is time series?
Time series is set of data point listed over
time.
• Why time series toolbox?
It is used for dynamic modelling and
prediction problems.
open loop NARX
closed loop NARX
It perform 1 step ahead prediction It
perform multistep ahead prediction
It uses actual value of y for prediction It
uses former value of y for prediction
• Time series tool allows to solve 3 kinds of non linear
time series
Steps for writing time series code for prediction for NARX output.
(Open loop)
1) Define input and target variables
2) Create a Nonlinear autoregressive network
3) NARXNET function is used to create network
4) NARXNET require (a) InputDelay (b) FeedbackDelay (c)
HiddenlayerSize as input
5) When network got created it require data for training
6) Function PREPARETS prepares time series data and allows to
keep original time series data unchanged
7) PREPARETS uses network ,input series ,target series to preapare
data
8) We know that data prepared is used for three purpose in network
(a) 75% data for training (b)15% data for validation (c)15% data
for testing . So our next step is to divide the data for upcoming
process.
9) Then next step is to train the netwok with the help of TRAIN
function.
10) TRAIN functions uses previously prepared data for training
purpose.
Steps for writing time series code for prediction for NAR
output. (closed loop)
1) Closed loop code is not completely different from
open loop
2) Network is always created and trained in open form.
3) So first network is created and trained in open form.
4) Then network is closed using the function
CLOSEDLOOP
5) Further preparets is use to prepare the time series
data
6) Then feedbackdata and input data is updated after
delay
7) Finally performance of network is checked

More Related Content

PPSX
Perceptron (neural network)
PPT
Artificial neural network
PDF
Artificial Intelligence Notes Unit 1
PPTX
Knowledge representation in AI
PPTX
Neuro-fuzzy systems
PPTX
Constraint satisfaction problems (csp)
PPTX
Perceptron & Neural Networks
PPT
Classification using back propagation algorithm
Perceptron (neural network)
Artificial neural network
Artificial Intelligence Notes Unit 1
Knowledge representation in AI
Neuro-fuzzy systems
Constraint satisfaction problems (csp)
Perceptron & Neural Networks
Classification using back propagation algorithm

What's hot (20)

PPSX
Congestion avoidance in TCP
PDF
Artificial Neural Networks Lect3: Neural Network Learning rules
PPTX
Truth management system
PPTX
Dempster shafer theory
PPTX
Semantic nets in artificial intelligence
PPTX
System interconnect architecture
PPT
Useful Techniques in Artificial Intelligence
PDF
Training Neural Networks
PPTX
Counter propagation Network
PPTX
Algorithm analysis in fundamentals of data structure
PPT
Predicate logic_2(Artificial Intelligence)
PPTX
Neuro-Fuzzy Controller
PPTX
Evaluating hypothesis
PPTX
Knowledge representation In Artificial Intelligence
PDF
Design & Analysis of Algorithms Lecture Notes
PPTX
1.10. pumping lemma for regular sets
PPTX
Knowledge representation and Predicate logic
PDF
Lecture11 - neural networks
PDF
Expert systems Artificial Intelligence
Congestion avoidance in TCP
Artificial Neural Networks Lect3: Neural Network Learning rules
Truth management system
Dempster shafer theory
Semantic nets in artificial intelligence
System interconnect architecture
Useful Techniques in Artificial Intelligence
Training Neural Networks
Counter propagation Network
Algorithm analysis in fundamentals of data structure
Predicate logic_2(Artificial Intelligence)
Neuro-Fuzzy Controller
Evaluating hypothesis
Knowledge representation In Artificial Intelligence
Design & Analysis of Algorithms Lecture Notes
1.10. pumping lemma for regular sets
Knowledge representation and Predicate logic
Lecture11 - neural networks
Expert systems Artificial Intelligence
Ad

Similar to # Neural network toolbox (20)

DOCX
SVM & MLP on Matlab program
PDF
N ns 1
PDF
Open CV Implementation of Object Recognition Using Artificial Neural Networks
DOCX
artificial-neural-network-seminar-report.docx
DOC
HW2-1_05.doc
PDF
Machine Learning Guide maXbox Starter62
PDF
Artificial Neural Network for machine learning
PPTX
Neural Networks
PPTX
How to Build a Neural Network and Make Predictions
PDF
Analysis and Comparison Study of Data Mining Algorithms Using Rapid Miner
PDF
ANALYSIS AND COMPARISON STUDY OF DATA MINING ALGORITHMS USING RAPIDMINER
PDF
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
PDF
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
PDF
X trepan an extended trepan for
PDF
Hand Written Digit Classification
PDF
F017533540
PDF
Human Activity Recognition Using AccelerometerData
PDF
Handwritten Digit Recognition using Convolutional Neural Networks
PPTX
House price prediction
PDF
Deep Learning Study _ FInalwithCNN_RNN_LSTM_GRU.pdf
SVM & MLP on Matlab program
N ns 1
Open CV Implementation of Object Recognition Using Artificial Neural Networks
artificial-neural-network-seminar-report.docx
HW2-1_05.doc
Machine Learning Guide maXbox Starter62
Artificial Neural Network for machine learning
Neural Networks
How to Build a Neural Network and Make Predictions
Analysis and Comparison Study of Data Mining Algorithms Using Rapid Miner
ANALYSIS AND COMPARISON STUDY OF DATA MINING ALGORITHMS USING RAPIDMINER
X-TREPAN: A MULTI CLASS REGRESSION AND ADAPTED EXTRACTION OF COMPREHENSIBLE D...
X-TREPAN : A Multi Class Regression and Adapted Extraction of Comprehensible ...
X trepan an extended trepan for
Hand Written Digit Classification
F017533540
Human Activity Recognition Using AccelerometerData
Handwritten Digit Recognition using Convolutional Neural Networks
House price prediction
Deep Learning Study _ FInalwithCNN_RNN_LSTM_GRU.pdf
Ad

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PPT on Performance Review to get promotions
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPT
Mechanical Engineering MATERIALS Selection
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Sustainable Sites - Green Building Construction
PDF
737-MAX_SRG.pdf student reference guides
DOCX
573137875-Attendance-Management-System-original
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
CH1 Production IntroductoryConcepts.pptx
PPT
Project quality management in manufacturing
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
OOP with Java - Java Introduction (Basics)
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Artificial Intelligence
Model Code of Practice - Construction Work - 21102022 .pdf
PPT on Performance Review to get promotions
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Mechanical Engineering MATERIALS Selection
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Sustainable Sites - Green Building Construction
737-MAX_SRG.pdf student reference guides
573137875-Attendance-Management-System-original
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
CH1 Production IntroductoryConcepts.pptx
Project quality management in manufacturing
R24 SURVEYING LAB MANUAL for civil enggi
OOP with Java - Java Introduction (Basics)
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Automation-in-Manufacturing-Chapter-Introduction.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Artificial Intelligence

# Neural network toolbox

  • 1. GROUP N0.-7 Rangpal Prabhat srivastava Vineet Kumar Suyash pandey Vibhav Yadav NEURAL NETWORK TOOLBOX GROUP-7 RANGPAL VINEET KUMAR PRABHAT SRIVASTAV SUYASH PANDEY VIBHAV YADAV IET LUCKNOW (AKTU) U. P. 226021
  • 2.  Artificial neural networks (ANNs) or connectionist systems are computing systems vaguely inspired by the biological neural networks that constitute animal brains.  Such systems "learn" (i.e. progressively improve performance on) tasks by considering examples, generally without task-specific programming. For example, in image recognition, they might learn to identify images that contain cats by analyzing example images that have been manually labeled as "cat" or "no cat" and using the results to identify cats in other images. They do this without any a priori knowledge about cats, e.g., that they have fur, tails, whiskers and cat-like faces. Instead, they evolve their own set of relevant characteristics from the learning material that they process.
  • 3. Neural Network Toolbox provides algorithms, pretrained models, and apps to create, train, visualize, and simulate both shallow and deep neural networks. You can perform classification, regression, clustering, dimensionality reduction, time-series forecasting, and dynamic system modeling and control. Basically, there are 3 different layers in a neural network :-  Input Layer (All the inputs are fed in the model through this layer)  Hidden Layers (There can be more than one hidden layers which are used for processing the inputs received from the input layers)  Output Layer (The data after processing is made available at the output layer)
  • 5.  Collect data  Create the network — Create Neural Network Object  Initialize the weights and biases  Train the network — Neural Network Training Concepts  Validate the network  Use the network
  • 6.  1-fitting app  2-Pattern recognition app  3-clustering app  4-time series app
  • 7.  AEROSPACE  AUTOMOTIVE  BANKING  DEFENCE  ELECTRONICS  ENTERTAINMENT  FINANCIAL  INDUSTRIAL  INSURANCE  MANUFACTURING  ROBOTICS  MEDICAL  SECURITIES  TELECOMMUNICATION
  • 8.  FUNCTIONS  nnstart – neural network getting started GUI  nftool – neural network fitting tool  net(view) – view neural network  net.trainparam.epochs – we can choose how  many epochs we wants  net.trainparam.goal – maximum performance  means we want accuracy  net.trainparam.lr – learning rate  net = train(net,x,y) – train network
  • 9.  To define a fitting problem for the toolbox, arrange a set of Q input vectors as columns in a matrix. Then, arrange another set of Q target vectors (the correct output vectors for each of the input vectors) into a second matrix . For example, you can define the fitting problem for a Boolean AND gate with four sets of two- element input vectors and one-element targets as follows:  inputs = [0 1 0 1; 0 0 1 1]; targets = [0 0 0 1];
  • 10.  Training –these are presented to the network dfuring training,and the network is adjusted according to its error.  Validation –these are use to measure network generalization,and to halt training when generalization stops improving.  Testing- these are no effect on training and so provide and independent measure of network performance during and after training .
  • 11. cluster is a group of objects that belongs to the same class. In other words, similar objects are grouped in one cluster and dissimilar objects are grouped in another cluster. Clustering is the process of making a group of abstract objects into classes of similar objects. The notion of a "cluster" cannot be precisely defined, which is one of the reasons why there are so many clustering algorithms The notion of a cluster, as found by different algorithms, varies significantly in its properties. Understanding these "cluster models" is key to understanding the differences between the various algorithms. Typical cluster models include:
  • 12. Apps Neural Net Clustering Cluster data by training a self-organizing maps network Functions nnstart Neural network getting started GUI view View neural network selforgmap Self-organizing map train Train neural network plotsomhits Plot self-organizing map sample hits plotsomnc Plot self-organizing map neighbor connections plotsomnd Plot self-organizing map neighbor distances plotsomplanes Plot self-organizing map weight plane plotsompos Plot self-organizing map weight positions plotsomtop Plot self-organizing map topology genFunction Generate MATLAB function for simulating neural network
  • 13. #Connectivity models: for example, hierarchical clustering #Centroid models: for example, the k-means algorithm #Density models: for example, DBSCAN and OPTICS defines clusters as connected dense regions in the data space. #Subspace Model #Group Model #Graph Based Model #Neural Model Clusterings can be roughly distinguished as: #Hard clustering: each object belongs to a cluster or not #Soft clustering (also: fuzzy clustering): each object belongs to each cluster to a certain degree (for example, a likelihood of belonging to the cluster)
  • 14.  Biology, computational biology and bioinformatics Ex- Transcryptomics, sequence analysis, human genetic clustering  Business and marketing Ex- market research, Grouping of shopping items  World wide web Ex- social network analysis, search result grouping  Computer science Ex- software evolution, image segmentation, recommender system
  • 15.  In addition to function fitting, neural networks are also good at recognizing patterns.  For example, suppose you want to classify a tumor as benign or malignant, based on uniformity of cell size, clump thickness, mitosis, etc. You have 699 example cases for which you have 9 items of data and the correct classification as benign or malignant.  As with function fitting, there are two ways to solve this problem:  Use the nprtool GUI, as described in Using the Neural Network Pattern Recognition Tool.  Use a command-line solution, as described in Using Command- Line Functions.  It is generally best to start with the GUI, and then to use the GUI to automatically generate command-line scripts. Before using either method, the first step is to define the problem by selecting a data set. The next section describes the data format.
  • 16.  To define a pattern recognition problem, arrange a set of Q input vectors as columns in a matrix. Then arrange another set of Q target vectors so that they indicate the classes to which the input vectors are assigned (see"Data Structures" for a detailed description of data formatting for static and time-series data).  When there are only two classes; you set each scalar target value to either 0 or 1, indicating which class the corresponding input belongs to. For instance, you can define the two-class exclusive-or classification problem as follows:  inputs = [0 1 0 1; 0 0 1 1]; targets = [1 0 0 1; 0 1 1 0];  When inputs are to be classified into N different classes, the target vectors have N elements. For each target vector, one element is 1 and the others are 0. For example, the following lines show how to define a classification problem that divides the corners of a 5-by-5-by-5 cube into three classes:
  • 17.  The origin (the first input vector) in one class  The corner farthest from the origin (the last input vector) in a second class  All other points in a third class  inputs = [0 0 0 0 5 5 5 5; 0 0 5 5 0 0 5 5; 0 5 0 5 0 5 0 5]; targets = [1 0 0 0 0 0 0 0; 0 1 1 1 1 1 1 0; 0 0 0 0 0 0 0 1];  Classification problems involving only two classes can be represented using either format. The targets can consist of either scalar 1/0 elements or two-element vectors, with one element being 1 and the other element being 0.  The next section shows how to train a network to recognize patterns, using the neural network pattern recognition tool GUI, nprtool. This example uses the cancer data set provided with the toolbox. This data set consists of 699 nine- element input vectors and two-element target vectors. There are two elements in each target vector, because there are two categories (benign or malignant) associated with each input vector.
  • 18. Time series toolbox • What is time series? Time series is set of data point listed over time. • Why time series toolbox? It is used for dynamic modelling and prediction problems.
  • 19. open loop NARX closed loop NARX It perform 1 step ahead prediction It perform multistep ahead prediction It uses actual value of y for prediction It uses former value of y for prediction
  • 20. • Time series tool allows to solve 3 kinds of non linear time series
  • 21. Steps for writing time series code for prediction for NARX output. (Open loop) 1) Define input and target variables 2) Create a Nonlinear autoregressive network 3) NARXNET function is used to create network 4) NARXNET require (a) InputDelay (b) FeedbackDelay (c) HiddenlayerSize as input 5) When network got created it require data for training 6) Function PREPARETS prepares time series data and allows to keep original time series data unchanged 7) PREPARETS uses network ,input series ,target series to preapare data 8) We know that data prepared is used for three purpose in network (a) 75% data for training (b)15% data for validation (c)15% data for testing . So our next step is to divide the data for upcoming process. 9) Then next step is to train the netwok with the help of TRAIN function. 10) TRAIN functions uses previously prepared data for training purpose.
  • 22. Steps for writing time series code for prediction for NAR output. (closed loop) 1) Closed loop code is not completely different from open loop 2) Network is always created and trained in open form. 3) So first network is created and trained in open form. 4) Then network is closed using the function CLOSEDLOOP 5) Further preparets is use to prepare the time series data 6) Then feedbackdata and input data is updated after delay 7) Finally performance of network is checked