Derive the gradients of y_hat w.r.t the inputs to an one-hidden-layer neural network

The one-hidden-layer neural network looks like below.

Image for post
Image for post

How would you derive y_hat’s gradients with respect to the input X?

I’m an Engineering Manager at Scale AI and this is my notepad for Applied Math / CS / Deep Learning topics. Follow me on Twitter for more!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store