You are on page 1of 7

Nama : Syahidah Muthi’ah

NIM : 1806602
Kelas : Elektronika Industri 2018

Tugas Sistem Cerdas – Perceptron


Soal:
E4.7 We have two categories of vectors. Category I consists of
0 −1 0
{[ ] , [ ] , [ ]}
0 0 1
Category II consists of

−1 0 −2
{[ ] , [ ] , [ ]}
1 2 0
i. Design a single-neuron perceptron network to recognize these two categories of
vectors.
ii. Draw the network diagram.
iii. Sketch the decision boundary.
iv. If we add the following vector to Category I, will your network classify it
correctly? Demonstrate by computing the network response.
−3
[ ]
0
Penyelesaian:
i. Design a single-neuron perceptron network to recognize these two categories of vectors.
1 0,5
• Memilih random weight [ ] dan persamaan garis [ ]
1 0
𝑇
1𝑤 𝑝 + 𝑏 = 0

[1 1] [0,5] + 𝑏 = 0
0
0,5 + 𝑏 = 0
𝑏 = −0,5

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝1 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([1 1] [ ] − 0,5)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0 − 0,5)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−0,5)
𝑎=0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝2 + 𝑏)
−1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([1 1] [ ] − 0,5)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−1 − 0,5)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−1,5)
𝑎=0

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝3 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([1 1] [ ] − 0,5)
1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(1 − 0,5)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,5)
𝑎 = 1 ≫ 𝑖𝑛𝑐𝑜𝑟𝑟𝑒𝑐𝑡

1 0,5
Pada pemilihan random weight [ ] dan persamaan garis [ ] didapatkan output pada
1 0
category I = [0 0 1], output tersebut masih salah, karena dalam satu category nilai
outputnya harus sama.

−0,5 0
• Memilih random weight [ ] dan persamaan garis [ ]
0,5 0,5
𝑇
1𝑤 𝑝+𝑏 =0
0
[−0,5 0,5] [ ]+𝑏 =0
0,5
0,25 + 𝑏 = 0
𝑏 = −0,25
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝1 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−0,5 0,5] [ ] − 0,25)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0 − 0,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−0,25)
𝑎 = 0 ≫ 𝑖𝑛𝑐𝑜𝑟𝑟𝑒𝑐𝑡

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝2 + 𝑏)
−1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−0,5 0,5] [ ] − 0,25)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,5 − 0,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,25)
𝑎=1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝3 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−0,5 0,5] [ ] − 0,25)
1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,5 − 0,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,25)
𝑎=1

−0,5 0
Pada pemilihan random weight [ ] dan persamaan garis [ ] didapatkan output
0,5 0,5
pada category I = [0 1 1], output tersebut masih salah, karena dalam satu category
nilai outputnya harus sama.

−1,5 0
• Memilih random weight [ ] dan persamaan garis [ ]
1,5 1,5
𝑇
1𝑤 𝑝+𝑏 =0
0
[−1,5 1,5] [ ]+𝑏 =0
1,5
2,25 + 𝑏 = 0
𝑏 = −2,25

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝1 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−2,25)
𝑎=0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝2 + 𝑏)
−1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(1,5 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−0,75)
𝑎=0

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝3 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(1,5 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(−0,75)
𝑎=0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝4 + 𝑏)
−1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(3 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,75)
𝑎=1

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝5 + 𝑏)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
2
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(3 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,75)
𝑎=1

𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝6 + 𝑏)
−2
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(3 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(0,75)
𝑎=1

−1,5 0
Pada pemilihan random weight [ ] dan persamaan garis [ ] didapatkan output
1,5 1,5
pada category I = [0 0 0] dan pada category II = [1 1 1], ini berati random
weight dan persamaan garis sudah benar karena dalam satu kategori ouputnya sudah
sama, iterasi pun selesai dan decision boundary sudah ditemukan.
ii. Draw the network diagram.
1 0,5
• Memilih random weight [ ] dan persamaan garis [ ]
1 0

−0,5 0
• Memilih random weight [ ] dan persamaan garis [ ]
0,5 0,5
−1,5 0
• Memilih random weight [ ] dan persamaan garis [ ]
1,5 1,5

iii. Sketch the decision boundary.


iv. If we add the following vector to Category I, will your network classify it correctly?
Demonstrate by computing the network response.
−3
[ ]
0
−3
{𝑝 = [ ] , 𝑡 = 0}
0
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚( 1𝑤 𝑇 𝑝 + 𝑏)
−3
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚 ([−1,5 1,5] [ ] − 2,25)
1
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(6 − 2,25)
𝑎 = ℎ𝑎𝑟𝑑𝑙𝑖𝑚(3,75)
𝑎=1
𝑎 ≠ 1 ≫ 𝑖𝑛𝑐𝑜𝑟𝑟𝑒𝑐𝑡

You might also like