Deep Learning: - Course Code: - Unit 1
Deep Learning: - Course Code: - Unit 1
Deep Learning: - Course Code: - Unit 1
• Course Code:
• Unit 1
Introduction to Deep learning
• Lecture 3
Multi layer Perceptron
Types of Perceptron?
1. Non-linear separator
𝑥2 h2
Map to
XOR =
( OR ) AND ( NAND )
𝑥1 h1
OR NAND
0 0 0 1 0
0 1 1 1 1
1 0 1 1 1
1 1 1 0 0
𝑥1 h1 1.5 1 AND
OR NAND 𝑥2 −1 h
0 0 0 1 0
− 1NAND 2
0 1 1 1 1
1 0 1 1 1
1 1 1 0 0
𝑥1 h1 1.5 1 AND
OR NAND 𝑥2 −1 h
0 0 0 1 0
− 1NAND 2
0 1 1 1 1 Input Hidden Output
1 0 1 1 1 Layer Layer Layer
1 1 1 0 0
𝑥2 −1 h
− 1NAND 2
Layer 2 (Output Layer)
1.5 1 AND
[ ]
1 1 1 1
[ − 1.5 1 1 ] 0 1 1 1
1 1 1 0
=
=
Amity Centre for Artificial Intelligence, Amity University, Noida, India
Try it Yourself: XNOR Logic
1
h0=1
𝑤 01
NOR AND 𝑥0=1 𝑤 11
1
𝑤 01
2
0 0 1 0 1 2
𝑤121 𝑤 11
0 1 0 0 0 𝑥1 1
1 0 0 0 0 𝑤 02 𝑦
1 2
1 1 0 1 1 𝑤12 𝑤 21
𝑥2 1
Determine the Weights. 𝑤22
Weight of connection between
node in layer to
node in layer
𝑥2 1 h
2
1 AND
h1 2 layers NN
12
Amity Centre for Artificial Intelligence, Amity University, Noida, India
Learning XNOR Logic: Multi-layer Perceptron
h0=1
Layer 1 (Hidden Layer)
𝑥0=1 0.5
h 1 − 0.5
−1
−1 1
𝑥1 NO
− 1.5
R
𝑦
1 OR
13
Amity Centre for Artificial Intelligence, Amity University, Noida, India
Neural Network Playground
https://playground.tensorflow.org
14
14
Amity Centre for Artificial Intelligence, Amity University, Noida, India
Neural Network Playground
https://playground.tensorflow.org
Which one to
choose
It is more suitable to
simple and linear
problems
Multi-layer perceptron is
more suitable for
complex and non-linear
problems.