Question: A softmax layer in a neural network takes an input vector x and produces an output vector y, where a. Obtain the derivatives yj

A softmax layer in a neural network takes an input vector x and produces an output vector y, where 

yj ear; k = la *k

a. Obtain the derivatives ∂yj/∂xi in terms of x-values for the cases i = j and i ≠ j. 

b. Re-express the derivatives in terms of y-values. 

c. What can you say about the signs of the derivatives? 

d. Using the indicator function 1(i = j), which has value 1 if i = j and 0 otherwise, combine your two expressions from part (b) into a single expression for the derivative ∂yj/∂xi.

yj ear; k = la *k

Step by Step Solution

3.29 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The derivative of the softmax function with respect to the input x can be calculated ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Artificial Intelligence A Modern approach Questions!