Gradients with respect to input to the hidden layer weight, U

Computing the gradients of the loss function with respect to is the same as , since here also we take the sequential derivative of . Similar to , to compute the derivative of any loss with respect to , we need to traverse all the way back to .

The final equation for computing the gradient ...

Get Hands-On Deep Learning Algorithms with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.