Question: HW 4 A . Training Perceptron ( paper and pencil ONLY ) Due By Oct. 1 0 midnight 2 0 Points Please put your name
HWA Training Perceptron paper and pencil ONLY
Due By Oct. midnight
Points
Please put your name in the filename.doc
Scan your work or type in word doc, then upload it to the Brightspace
No programming for this HWA
A logic gate AND problem can be seen as a linear separable problem see the fig. below The input X and output Y are given in the following table. In the table, x is constant. The x and x values are the real input data. The Y values are the outputs which can be seen as binary class problem or A single perceptron can be used to solve the linear separable problem.
x x x y
Logic AND gate vs linear separable problem
Given the conditions above, you are required:
Train the perceptron to find the optimum weights W
Find the Decision Boundary Function x fx
Draw the decision boundary with given data X
You need to write down your calculations step by step
For Your Reference: Training step
Given initial weights Wi@@ X&&@&&@&&@&& and Y@@@ above, where the i is the number of the epoch. For i it means the first epoch.
Training can be done as follows, starting from i
Find the sigma or the weighted sum using Wi:
Sigma i X Wi
Find the prediction Yi using the Step function as an activation function,
For each sample j: yj If any of Sigma ij
yj otherwise
Find the Errors:
EiYYi
Update the Wi to Wi if Ei otherwise the training is finished.
Wi Wi alphaXTEi where alpha
Go to Step
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
