19
© 2012 MathWorks Inc. Neural Network Toolbox Ramadan Elmoudi

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

  • Upload
    others

  • View
    65

  • Download
    0

Embed Size (px)

Citation preview

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

© 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• 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

• Classification of an XOR problem with

a multilayer perceptron