PART I Chapter2 Neural Network
PART I Chapter2 Neural Network
PART 1:
Neural
Network
Instructor: Dr. Dang Xuan Ba
Email: [email protected]
Chapter 2: Single-layer
Feedforward Neural Network
Input signal:
Output signal:
Weight matrix:
xn wn
xn wn
Learning law: wk +1 = wk + (d k − yk ) xk
w
x = x1 ; x2 ;...xn ; −1
T e
w2 w x −
i i
epod + +
wk , k + +
… Forward
computation
xn wn net , y Updating
law
Error kK
Learning algorithm (supervised learning).
Calculation ek = d k − yk
Consider k sample: kK
E = E + ek
2
x = x1 ; x2 ;...xn ; −1
T
Input signal:
Stop checking E , epod
Integration signal: net = w x T No
Yes
NN output signal: y = hardlim( w x) T
Done
Labelled desired signal:
Learning law: wk +1 = wk + (d k − yk ) xk
Part I: Neural Network Presenter: Dr. Dang Xuan Ba 9
Chapter 2: Single-layer Feedforward Neural Network
2. Linear Threshold unit (Đơn vị ngưỡng tuyến tính)/Theorem
x1 w1 Theorem: If the input data is separable, the
y LTU learning law will converge within finite
x2 iterations.
w2 w x −
i i
…
xn wn
x = x1 ; x2 ;...xn ; −1
T
Input signal:
xn wn
x = x1 ; x2 ;...xn ; −1
T
Input signal:
X1 X2 d =x1 xor x2
0 0 0
0 1 1
1 0 1
1 1 0
Effectiveness of the neural network is mainly based on the characteristics of the problem,
data acquired, and “Intelligence” of the designer.
xn wn
xn wn
wk +1 = wk − ek
w k
Part I: Neural Network Presenter: Dr. Dang Xuan Ba 17
Chapter 2: Single-layer Feedforward Neural Network
3. Linear Graded unit (Đơn vị đánh giá tuyến tính)/Example 1
Example 1: Given a simple LGU network with two inputs (x1, x2) and one output (y) using
the linear integration function and unipolar sigmoid activation function (logsig), derive the
learning rule of the system?
x = x1 ; x2 ;...xn ; −1
T
net = f ( wT x) 1
k y = − net
y = a (net ) 1 + e
ek = d k − yk
ek = d k − yk − net
T e = e yk netk = − e XT
e w k yk netk w k
( )
2
wk +1 = wk − ek 1 + e − net
k
w
Effectiveness of the neural network is mainly based on the characteristics of the problem,
number data acquired (large), and “Intelligence” of the designer.
x1 w11 y1 x1 w1
w12
x2 y2 y
x2
x3
.. .. w2 w x −
i i
.. …
. . .
wnm yn
xm xn wn
xn wn
Example 1: Given a simple ADALINE network with two inputs (x1, x2) and one output (y)
using the linear integration function and linear activation function, derive the learning rule
of the system?
Effectiveness of the neural network is mainly based on the characteristics of the problem,
number data acquired (large), and “Intelligence” of the designer. The design could use
overdesign.
END OF CHAPTER 2