3

enter image description here

The answer is supposed to be -6, but I don't know how to get that.

Also, in a NN, is that 2nd hidden layer possible, where the neurons are not dependent on all the neurons of the previous layer?

nbro
  • 42,615
  • 12
  • 119
  • 217
duanebobby
  • 33
  • 3

1 Answers1

3

From calculus rules: $\frac{\partial y}{\partial x_1}=\frac{\partial y}{\partial r_1}\frac{\partial r_1}{\partial x_1}+\frac{\partial y}{\partial r_2}\frac{\partial r_2}{\partial x_1}=3c+d=-6$. In a NN the above 2nd hidden layer where the neurons are not dependent on all the neurons of the previous layer is possible and it's usually just called a non fully-connected layer.

cinch
  • 11,000
  • 3
  • 8
  • 17