Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 (30 points): Given a neural network with two layers: Layer 1 has weight matrix W1 and bias vector b1, and layer 2 has
Question 1 (30 points): Given a neural network with two layers: Layer 1 has weight matrix W1 and bias vector b1, and layer 2 has weight matrix W2 and bias vector b2. Each layer i has sigmoid activation function, represented by ai - sigmoid(zi) 1.1) Write all steps of forward propagation equations in terms of weights and bias matrices for an input data X. 1.2) Find the gradient of mean square loss function and sigmoid activation function. Write a chain rule backpropagation of aLiax. 1.3) For the gradient descent algorithm, what is the update rule of W1, W2, b1 and b2? You should write aL/aW2, aL/ab2, with chain rule, then find the update rule. Question 1 (30 points): Given a neural network with two layers: Layer 1 has weight matrix W1 and bias vector b1, and layer 2 has weight matrix W2 and bias vector b2. Each layer i has sigmoid activation function, represented by ai - sigmoid(zi) 1.1) Write all steps of forward propagation equations in terms of weights and bias matrices for an input data X. 1.2) Find the gradient of mean square loss function and sigmoid activation function. Write a chain rule backpropagation of aLiax. 1.3) For the gradient descent algorithm, what is the update rule of W1, W2, b1 and b2? You should write aL/aW2, aL/ab2, with chain rule, then find the update rule
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started