Question: Need help doing this by HAND only. No code should be added. Please do each update weight, and show the calculations done. Need help to
Need help doing this by HAND only. No code should be added. Please do each update weight, and show the calculations done.
Need help to update the weights for each point specifically. Please be specific.
Forward
Calculation
Let's start with the following weights:
w
w
w
w
w
w
w
w
w
All of the connections are
and all of the biases are zero
We'll work on training the logical
AND function that we previously used for the single layer perceptron. Here is its truth table:
x
x
target label
t
First, use the network as configured to attempt to classify each point. Perform a forward
pass through the network by hand for each of the four points. What results do you obtain?
for each hidden layer node j:
y
j
the weighted sum of inputs to node j
o
j
sigmoid
y
j
for the output layer node k:
y
k
the weighted sum of hidden layer o
j values to node k
o
k
sigmoid
y
k
if o
k
:
assign class
else:
assign class
Train
We'll now train the network by hand using the backpropagation update rules. I
m not repeating the update rules here, because they're hard to type, but you have them in your notes.
Iterate one point at a time. Use a learning rate of
Classify the point using the forward pass. In doing so
youll obtain values for each yj and oj at the hidden
layer nodes, and yk and ok at the output layer.
Update the weights
and the bias
at the output node using its update rule.
Update the weights and bias at each of the two hidden
layer nodes using their update rules.
The updates take place even if the assigned class matches the target class. Use the value of the output sigmoid function $ok$ to calculate the error
Do one epoch, training over all four points in the logical
AND function, updating the weights after each point.
After you update the weights, verify that they have moved in a direction that makes the classification more correct, even if the output has not crossed the threshold of
to actually change its predicted class.
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
