Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural...
Transcript of Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural...
![Page 1: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/1.jpg)
© 2012 MathWorks Inc.
Neural Network
Toolbox
Ramadan Elmoudi
![Page 2: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/2.jpg)
• The Neural Network Toolbox makes the
working with neural networks easier in
Matlab.
• The toolbox consists of a set of structures
and functions that we need to deal with
neural networks .
• The toolbox saves us the time of writing
the code to handle the neural network.
• Therefore, the user will concern about the
ideas behind his NN rather than
programing .
![Page 3: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/3.jpg)
• Classification of linearly separable data
with a perceptron
PROBLEM DESCRIPTION:
Two clusters of data, belonging to two
classes, are defined in a 2-dimensional input
space. Classes are linearly separable.
THE TASK:
To construct a Perceptron for the
classification of data.
![Page 4: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/4.jpg)
• Classification of linearly separable data
with a perceptron
-4 -2 0 2 4 6 8
-5
0
5
10
Vectors to be Classified
P(1)
P(2
)
![Page 5: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/5.jpg)
• Classification of linearly separable data
with a Single Layer Perceptron
![Page 6: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/6.jpg)
• Classification of linearly separable data
with a perceptron
-4 -2 0 2 4 6 8
-5
0
5
10
Vectors to be Classified
P(1)
P(2
)
![Page 7: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/7.jpg)
• Classification of linearly separable data
with a perceptron
Java Applet
![Page 8: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/8.jpg)
• Using a 2-Neuron perceptron to solve
a 4-Class classification problem
PROBLEM DESCRIPTION:
To classify input vectors into 4 classes
using perceptron with 2- inputs and
2- outputs.
THE TASK:
To construct Multi-Input-Multi-Output
perceptron for the classification of data.
![Page 9: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/9.jpg)
• Using a 2-Neuron perceptron to solve
a 4-Class classification problem
-1 -0.5 0 0.5 1 1.5 2-1
-0.5
0
0.5
1
1.5
2
Class A Class B
Class CClass D
![Page 10: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/10.jpg)
• Using a 2-Neuron perceptron to solve
a 4-Class classification problem
-1 -0.5 0 0.5 1 1.5 2-1
-0.5
0
0.5
1
1.5
2
Class A Class B
Class CClass D
![Page 11: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/11.jpg)
• Using a 2-Neuron perceptron to solve
a 4-Class classification problem
-1 -0.5 0 0.5 1 1.5 2-1
-0.5
0
0.5
1
1.5
2
Class A Class B
Class CClass D
![Page 12: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/12.jpg)
• Using a 2-Neuron perceptron to solve
a 4-Class classification problem
![Page 13: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/13.jpg)
• XOR Problem
• Review
X1 X2 y
0 0 0
0 1 0
1 0 0
1 1 1
y > 0
y = 0
y < 0
b
W1 •X1
W2 •X2
y
1
![Page 14: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/14.jpg)
• XOR Problem
• It is impossible to find a line which separates the
data space
X1 X2 y
0 0 0
0 1 1
1 0 1
1 1 0
![Page 15: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/15.jpg)
• Classification of an XOR problem with
a multilayer perceptron
PROBLEM DESCRIPTION:
Clusters of data are defined in a 2-
dimensional input space to represent the
XOR problem.
THE TASK:
To create a neural network that solves XOR
problem.
![Page 16: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/16.jpg)
• Classification of an XOR problem with
a multilayer perceptron
-0.5 0 0.5 1 1.5-0.5
0
0.5
1
1.5Vectors to be Classified
P(1)
P(2
)
![Page 17: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/17.jpg)
• Classification of an XOR problem with
a multilayer perceptron
![Page 18: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/18.jpg)
• Classification of an XOR problem with
a multilayer perceptron
![Page 19: Neural Network Toolbox - IEEEewh.ieee.org/conf/sge/2012/T1-Ramadan-PART2-SIM.pdf · • The Neural Network Toolbox makes the working with neural networks easier in Matlab. • The](https://reader030.fdocuments.in/reader030/viewer/2022040204/5eabef0f0ba7793c5049e555/html5/thumbnails/19.jpg)
• Classification of an XOR problem with
a multilayer perceptron