Homework Assignment 2 Solution

$30.00 $24.00

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…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

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.

  1. Use computational graph for calculation

  1. 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.

  1. Use computational graph for calculation

  1. 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.

Homework Assignment 2 Solution
$30.00 $24.00