Characteristics of Artificial Neural Networks
Characteristics of Artificial Neural Networks
Characteristics of Artificial Neural Networks
Neural Networks
G5AIAI Neural Networks
Neural Networks
• McCulloch & Pitts (1943) are generally
recognised as the designers of the first
neural network
Neural Networks
Neural Networks
• During the 50’s and 60’s many
researchers worked on the perceptron
amidst great excitement.
• 1969 saw the death of neural network
research for about 15 years – Minsky &
Papert
• Only in the mid 80’s (Parker and LeCun)
was interest revived (in fact Werbos
discovered algorithm in 1974)
G5AIAI Neural Networks
Neural Networks
G5AIAI Neural Networks
Neural Networks
Neural Networks
• Signals “move” via electrochemical
signals
X2 2
Y
-1
X3
X2 2
Y
-1
X2 2
Y
-1
X3
X2 2
Y
-1
X3
X2 2
Y
-1
X3
X2 2
Y
-1
X3
X2 2
Y
-1
X3
X2 2
Y
-1
X3
1
AND
X1
Y
X1 X2 Y
1 1 1
X2 1
1 0 0
AND Function
0 1 0
0 0 0
Threshold(Y) = 2
G5AIAI Neural Networks
Threshold(Y) = 2
G5AIAI Neural Networks
Threshold(Y) = 2
G5AIAI Neural Networks
Modelling a Neuron
Activation Functions
Simple Networks
AND OR NOT
Input 1 0 0 1 1 0 0 1 1 0 1
Input 2 0 1 0 1 0 1 0 1
Output 0 0 0 1 0 1 1 1 1 0
G5AIAI Neural Networks
Simple Networks
-1
W = 1.5
x t = 0.0
W=1
y
G5AIAI Neural Networks
Perceptron
• Synonym for Single-
Layer, Feed-Forward
Network
• First Studied in the
50’s
• Other networks were
known about but the
perceptron was the
only one capable of
learning and thus all
research was
concentrated in this
area
G5AIAI Neural Networks
Perceptron
• A single weight only
affects one output so
we can restrict our
investigations to a
model as shown on
the right
• Notation can be
simpler, i.e.
O Step0 j WjIj
G5AIAI Neural Networks
AND XOR
Input 1 0 0 1 1 0 0 1 1
Input 2 0 1 0 1 0 1 0 1
Output 0 0 0 1 0 1 1 0
G5AIAI Neural Networks
0,0 1,0
1,0
0,0
AND XOR
Training a perceptron
Aim
AND
Input 1 0 0 1 1
Input 2 0 1 0 1
Output 0 0 0 1
G5AIAI Neural Networks
Training a perceptrons
-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
G5AIAI Neural Networks
Learning
While epoch produces an error
Present network with next inputs from
epoch
Err = T – O
If Err <> 0 then
Wj = Wj + LR * Ij * Err
End If
End While
G5AIAI Neural Networks
Learning
While epoch produces an error
Present network with next inputs from epoch
Err = T – O
If Err <> 0 then
Wj = Wj + LR * Ij * Err
End If
End While
Learning
While epoch produces an error
Present network with next inputs from epoch
Err = T – O
If Err <> 0 then
Wj = Wj + LR * Ij * Err
End If
End While
Learning
While epoch produces an error
Present network with next inputs from epoch
Err = T – O
If Err <> 0 then
Wj = Wj + LR * Ij * Err
End If
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
G5AIAI Neural Networks
Learning
While epoch produces an error
Present network with next inputs from epoch
Err = T – O
If Err <> 0 then
Wj = Wj + LR * Ij * Err
End If
End While
Learning
I1
1,1
0,1
After First Epoch
Note
I1 point = W0/W1
I2
I2 point = W0/W2 0,0 1,0
I1
1,1
0,1
At Convergence
I2
0,0 1,0
G5AIAI Neural Networks
And Finally….