Essentially applied vector calculus

‘Matrix Calculus’


Jacobian defaults to so-called “numerator layout” (i.e. output gradients stacked vertically as row vectors). “Denominator layout” refers to its transpose

99% of functions that pop up in ML

99% of functions that pop up in ML

Vec()

Little-o trick


Another way to do derivatives. Generally you have to be good at:

Sometimes it’s more painful than just computing partials

Main idea