Step 1. Initialize weights and count
Step 2. Set learning rate(a) and Emax
Step 3. For each traning pattern pair (X, D)
Step 5. Compute output error
v, w <- small random number
p <- number of traning pattern pairs
k <- 1
E <- 0
p <- number of traning pattern pairs
k <- 1
E <- 0
Step 2. Set learning rate(a) and Emax
Step 3. For each traning pattern pair (X, D)
do step 4 - 8 until k = p
Step 4. compute output
Step 4. compute output
NET_z = Xk inner_product Vk
Z = f(NET_z)
f(NET_z) = 1 / (1 + exp(-NET_z)) ; unipolar sigmoid
(1 - exp(-NET_z)) / (1 + exp(-NET_z)) ; bipolar sigmoid
NET_y = Z inner_product Wt
Y = f(NET_y)
f(NET_y) = 1 / (1 + exp(-NET_y)) ; unipolar sigmoid
(1 - exp(-NET_y)) / (1 + exp(-NET_y)) ; bipolar sigmoid
Z = f(NET_z)
f(NET_z) = 1 / (1 + exp(-NET_z)) ; unipolar sigmoid
(1 - exp(-NET_z)) / (1 + exp(-NET_z)) ; bipolar sigmoid
NET_y = Z inner_product Wt
Y = f(NET_y)
f(NET_y) = 1 / (1 + exp(-NET_y)) ; unipolar sigmoid
(1 - exp(-NET_y)) / (1 + exp(-NET_y)) ; bipolar sigmoid
Step 5. Compute output error
E <- 0.5 * (Dk - Yk)^2 + E
Step 6. Compute error signal
delta_y = (d-y) * y * (1 - y) ; unipolar sigmoid
0.5 * (d-y) * (1-y^2) ; bipolar sigmoid
delta_z = z * (1-z) * sumation of delta_y*W ; unipolar sigmoid
0.5 * (1-z^2) * sumation of delta_y*W ; bipolar sigmoid
0.5 * (d-y) * (1-y^2) ; bipolar sigmoid
delta_z = z * (1-z) * sumation of delta_y*W ; unipolar sigmoid
0.5 * (1-z^2) * sumation of delta_y*W ; bipolar sigmoid
Setp 7. Update weights
Wk+1 = Wk + delta_Wk
= Wk + a * delta_y * Zk
Vk+1 = Vk + delta_Vk
= Vk + a * delta_z * Xk
= Wk + a * delta_y * Zk
Vk+1 = Vk + delta_Vk
= Vk + a * delta_z * Xk
Step 8. Increase counter and goto Step 3
k <- k + 1
Step 9. Test stop condition
If E < Emax, stop
else E <- 0, goto Step 3
역시 책 없을때 보려고 블로그에 백업
'신경망' 카테고리의 다른 글
| 역전파망의 루비 구현 - Backpropagation Network in Ruby (0) | 2009/01/29 |
|---|---|
| 모멘텀 BP 알고리즘 momentum BP algorithm (0) | 2009/01/15 |
| Backpropagation algorithm (0) | 2008/12/30 |
| MADALINE 학습 알고리즘 - MR I (4) | 2008/11/28 |
| 퍼셉트론 학습 알고리즘 (0) | 2008/11/28 |
| 퍼셉트론 Perceptron 패턴인식 데모 (8) | 2008/11/04 |

댓글을 달아 주세요