Ann MLP
Ann MLP
N 1
y (t ) f W i(t ) X i(t )
i 0
Contd…
Step 4. Adapt Weights
1
W (5) X (5) 0, W (6) W (5) X (5) 0
1
Contd…
- 1
W (6) X (6) 1, W (7) W (6) 0
1
2
W (7) X (7) 0, W (8) W (7) X (7) 0
0
2
W (8) X (8) 2, W (9) W (8) 0
0
Contd…
Since two errors occurred in this iteration,
the patterns are presented again.
2
W (9) X (9) 0, W (10) W (9) X (9) 0
1
2
W (10) X (10) 1, W (11) W (10) 0
1
Contd…
- 2
W (11) X (11) 1, W (12) W (11) 0
1
2
W (12) X (12) 1, W (13) W (12) 0
1
Contd…
It is easily verified that in the next
iteration all patterns are classified
correctly. The solution vector is,
therefore,W=(-2,0,1)’ The corresponding
decision function is d(X)=-2x1+1which,
when set equal to zero, becomes the
equation of the decision boundary shown
in Figure below.
(a) Patterns belonging to two classes.
(b) Decision boundary determined by
training
-
Contd…
According to Eq.(2), we may express the
perceptron algorithm in an equivalent form
by multiplying the augmented patterns of
one class by - 1. Thus, arbitrarily multiplying
the patterns of ω2 by - 1, we can write the
perceptron algorithm as
Contd…
W (t ) if W (t ) X (t ) 0
W (t 1)
W (t ) X (t ) if W (t ) X (t ) 0