Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are supposed to train a neural network that will guide auto - driving car. The training data consists of grayscale 6 4 6 4

You are supposed to train a neural network that will guide auto-driving car. The training data consists of grayscale 6464 pixel images. The training labels include the human driver's steering wheel angle in degrees and the human driver's speed in miles per hour in output layer. Your neural network consists of an input layer with 6464=4096 units, a hidden layer with 2048 units, and an output layer with 2 units (one for steering angle, one for speed). You use the ReLU activation function for the hidden units and no activation function for the outputs (or inputs).
a) Calculate the number of parameters (weights) in this network. You can leave your answer as an expression. Make sure to account for the bias terms.
(2.5 marks)
b) You train your network with the cost function J=0.5*|y-z|2. Use the following notation.
x is a training image (input) vector with a 1 component appended to the end, y is a training label (input) vector, and z is the output vector. All vectors are column vectors.
r()=max{0,} is the ReLU activation function, r'() is its derivative if Y>0,0 otherwise), and r(v) is r(*) applied component-wise to a vector.
g is the vector of hidden unit values before the ReLU activation functions are applied, and h=r(g) is the vector of hidden unit values after they are applied (but we append a 1 component to the end of h).
V is the weight matrix mapping the input layer to the hidden layer; g=Vx.
W is the weight matrix mapping the hidden layer to the output layer; z=Wh.
Derive delJdelWij.
(4 marks)
c) Write delJdelW as an outer product of two vectors. delJdelW is a matrix with the same dimensions as W; it's just like a gradient, except that W and delJdelW are matrices rather than vectors.
(2 marks)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

Explain the process of MBO

Answered: 1 week ago