MLP
MLP
Example :
1. Training Patterns
Input(x) : [-15 -10 -5 0 5 10 15]
Desired Output(y) : function y = 0.05 x 0.2 x 3 x + 20 for input(x)
3
2. Architecture of MLP
W2
W3
W1
Input
Layer
First
Hidden
Layer
Second
Hidden
Layer
Output
Layer
3. Test Patterns
Input(x) : values from -15 to 15
Desired Output(y) : function y = 0.05 x 0.2 x 3 x + 20
3
Training Vectors
100
input point
desired output y=0.05*x 3-0.2*x 2-3*x+20
50
g
ni
n
ni
ar
t
r
of
y
r
ot
c
e
V
t
e
g
r
a
T
-50
-100
-150
-15
-10
-5
0
Input Vector x
10
15
10
10
k
c
al
Bl
a
o
G
e
ul
Bg
ni
ni
ar
T
10
RMS error
-2
10
-4
10
Goal : 1e-006
-6
10
100
200
300
400
752 Epochs
500
600
700
0
t
u
pt
u
O
-50
-100
-150
-15
-10
-5
0
Input Vector
10
y=0.05*x.^3-0.2*x.^2-3*x+20;
%--------------------------------------------------
plot(x,y,'b*',x1,y1,'b')
title('Training Vectors');
% a title of figure
% x label of figure
% y label of figure
15
%--------------------------------------------------
%--------------------------------------------------
%--------------------------------------------------
sim function
%--------------------------------------------------