Skip to content

Instantly share code, notes, and snippets.

@anishpatel
Created July 12, 2018 21:31
Show Gist options
  • Save anishpatel/50e4adf03b700f2d3b925ce03655e2ee to your computer and use it in GitHub Desktop.
Save anishpatel/50e4adf03b700f2d3b925ce03655e2ee to your computer and use it in GitHub Desktop.

$$ L(A,F) = \frac{1}{K}|R\circ(S-AF)|_2^2. $$

Compute the partial derivatives of $L$ with respect $A$ and $F$. Show that $$\frac{\partial L}{\partial A} = \frac{-2}{K}[R\circ(S-AF)]F^\top.$$ and $$\frac{\partial L}{\partial F} = \frac{-2}{K}A^\top[R\circ(S-AF)].$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment