Neural Metwork: Institut Teknologi Sepuluh Nopember (ITS) Surabaya - Indonesia
Neural Metwork: Institut Teknologi Sepuluh Nopember (ITS) Surabaya - Indonesia
• Single-layer Neural
Networks
• Perceptron will learn to
classify any linearly
separable set of inputs
Learning in Perceptrons
• Rosenblatt 1960
• Let y be the correct output, and f(x) the output function of the
network.
• The neuron's output, 0 or 1, is determined by whether the
weighted sum σ𝑗 𝑤𝑗 𝑥𝑗 is less than or greater than threshold value
• Error: E = y-f(x)
• Update weights: 𝑤𝑗 ← 𝑤𝑗 + 𝛼𝑥𝑗 𝐸
Example: XOR
MULTILAYER PERCEPTRON
Arsitektur 1 b1
1 bot
y1
X1 w11
Z1
w1p
X2 w21
w2p
Zj yj
1 wn1
wnj
1
Xn wnp
Zp ym
bp
1
1
Algoritma Pembelajaran BP
• Langkah 0 : Inisialisasi nilai bobot dan bias
tentukan dengan nilai yang cukup kecil
• Langkah 1 : Jika kondisi penghentian loop tidak terpenuhi, kerjakan langkah 2-9
• Langkah 2 : Setiap pasangan training s,t kerjakan langkah 3-8
• Langkah 3 : Isikan input, setiap input akan diterima layer berikutnya
• Langkah 4 : Hitung zin j = v0j+xivij, zout=f(zin)
• Langkah 5 : Hitung yin = w0k+ziwjk, yout=f(yin)
• Langkah 6 : k = (tk – yout) f‘(yin k), wjk=kzj
• Langkah 7 : in j = k wjk , k = in j f’(zin j), vij=jxi,
• Langkah 8 : wjk(new)=wjk(old)+wjk , vij(new)= vij(old)+ vij
• Langkah 9 : Cek kondisi pemberhentian,
A Step by Step Backpropagation
• The basic structure:
https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/
The Forward Pass