[SOLVED] ECE579 Homework2-Practice of scalar‐based backpropagation

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon hw2-ua8w3h.zip (920.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Problem 1 (Practice of scalar‐based backpropagation). You are required to calculate the gradients of 𝑓 𝐱, 𝐰  with respect to xi

and wi.

  • Use computational graph for calculation
  • Based on(a), write a program to implement the computational graph and verify your answer in (a).

Note: You are free to choose the inputs of your computational graph.

Problem 2 (Practice of vector‐based backpropagation). You are required to calculate the gradients of 𝑓 𝑥, 𝑤 ‖𝜎 𝐖𝐱 ‖ with respect to xi and Wi,j. Here ‖∙‖ is the calculation of L2 loss, W is 3‐by‐3 matrix and x is 3‐by‐1 vector, and 𝜎 ∙ is sigmoid function that performs element‐wise sigmoid operation.

  • Use computational graph for calculation
  • Based on(a), write a program to implement the computational graph and verify your answer in (a). You can use vectorized approach to simply your codes.

Note: You are free to choose the inputs of your computational graph.

 

  • hw2-ua8w3h.zip