Lec1 Inroduction To Neural Network
Lec1 Inroduction To Neural Network
Lec1 Inroduction To Neural Network
NETWORKS
AGENDA
Biological Background
Artificial Neuron
Classes of Neural Networks
1. Perceptrons
2. Multi-Layered Feed-Forward Networks
3. Recurrent Networks.
Neural activation :
Throught dendrites/axon
Synapses have different
strengths
ANN INGREDIENTS
SIMULATION ON ANN
ARTIFICIAL NEURON EXAMPLE
aj Wji
ini = ai =
ai
SajWji g(ini)
CLASS I: PERCEPTRON
Ij Wj O
-1 W0
W1 in = a=
a1 a
W2 SajWj g(in)
a2
• Feed-forward:
• Output links only connected to
input links in the next layer
Complex non-linear
functions can be
represented
MULTI LAYER NN EXAMPLE
CLASS III: RECURRENT NETWORKS
Behaviour more
difficult to predict/
understand
Apps: Voice to text
MODELLING A NEURON
X1 1 AND
Y
X1 X2 Y
1 1 1
X2 1
1 0 0
AND Function 0 1 0
0 0 0
Threshold(Y) = 2
THE FIRST NEURAL NEURAL
NETWORKS
X1 2
OR
Y
X1 X2 Y
1 1 1
X2 2 1 0 1
AND Function
OR Function 0 1 1
0 0 0
Threshold(Y) = 2
THE FIRST NEURAL NEURAL
NETWORKS
AND
X1 2 NOT
Y
X1 X2 Y
1 1 0
X2 -1 1 0 1
AND NOT Function 0 1 0
0 0 0
Threshold(Y) = 2
G5BAIM Neural Networks
0,0 1,0
1,0
0,0
AND XOR
-1
W = 0.3
x t = 0.0
W = 0.5
W = -0.4
y
I1 I2 I3 Summation Output
-1 0 0 (-1*0.3) + (0*0.5) + (0*-0.4) = -0.3 0
-1 0 1 (-1*0.3) + (0*0.5) + (1*-0.4) = -0.7 0
-1 1 0 (-1*0.3) + (1*0.5) + (0*-0.4) = 0.2 1
-1 1 1 (-1*0.3) + (1*0.5) + (1*-0.4) = -0.2 0
LEARNING
End While
End While
Error, Err : The error value is the amount by which the value
output by the network differs from the training value.
For example, if we required the network to output 0
and it output a 1, then Err = -1
LEARNING
End While