6,007 views
3 3 votes

The goal of backpropagation is to optimize the weights so that the neural network can learn how to correctly map arbitrary inputs to outputs.

Assume for the following neural network, inputs = [$i_1,i_2$] = [0.05, 0.10], we want the neural network to output = [$o_1$,$o_2$] = [0.01, 0.99], and for learning rate, $\alpha=0.5$.
In addition, the activation function for the hidden layer (both $h_1$ and $h_2$) is sigmoid (logistic):

$S(x)=\frac{1}{1+e^{-x}}$

Hint:
$w_{new} = w_{old} - \alpha \frac{\partial E}{\partial w}$

$E_{\text {total}}=\sum \frac{1}{2}(\text {target}-\text {output})^{2}$

 

a) Show step by step solution to calculate weights $w_1$ to $w_8$ after one update in table below.
b) Calculate initial error and error after one update (assume biases $[b_1,b_2]$ are not changing during the updates).

Updating weights in backpropagation algorithm
Weights Initialization New weights after one step
$w1$ 0.15 ?
$w2$ 0.20 ?
$w3$ 0.25 ?
$w4$ 0.30 ?
$w5$ 0.40 ?
$w6$ 0.45 ?
$w7$ 0.50 ?
$w8$ 0.55 ?
50% Accept Rate Accepted 31 answers out of 62 questions

1 Answer

Best answer
2 2 votes

You can find the step-by-step solution provided here. However, in this solution, it is also considered that we have a sigmoid function applied to the output layer, which is not requested in this question. Therefore, you should adjust this solution by not applying Sigmoid on the output layer (which leads to a simpler solution).

selected by

Related questions

3 3 votes
1 answers 1 answer
7.4k
7.4k views
tofighi asked Apr 11, 2019
7,397 views
Assume we have the following neural network and all activation functions are $f(z)=z$. If the weights are initialized with the values you see in table below, what will be...
2 2 votes
1 answers 1 answer
6.6k
6.6k views
tofighi asked Mar 28, 2019
6,629 views
For the below neural network, imagine we are going to use the backpropagation algorithm to update weights. If the Bias (b) in this problem is always 0 (ignore bias when y...
3 3 votes
1 answers 1 answer
9.4k
9.4k views
tofighi asked Apr 4, 2019
9,401 views
In the figure below, a neural network is shown. Calculate the following:1) How many neurons do we have in the input layer and the output layer?2) How many hidden layers d...
5 5 votes
1 answers 1 answer
9.1k
9.1k views
tofighi asked Jun 26, 2019
9,105 views
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...
3 3 votes
2 answers 2 answers
8.4k
8.4k views
tofighi asked Apr 4, 2019
8,402 views
The scatter plot of Iris Dataset is shown in the figure below. Assume Softmax Regression is used to classify Iris to Setosa, Versicolor, or Viriginica using just petal le...