Gradient of $H \mapsto \| A − W H \|_{\text{F}}^2$

1.4k Views Asked by At

What is the gradient of $f (H) = \| A − W H \|_{\text{F}}^2$?

1

There are 1 best solutions below

0
On

Let $\phi(H) = \operatorname{tr} ((A-WH)^T (A-WH))$, then by taking the linear term in $\Delta$ in the expression $\phi(H+\Delta)-\phi(H)$ we see that $D \phi(H)(\Delta) = -2 \operatorname{tr} ((A-WH)^T W\Delta)$ and so the 'matrix' format is $-2W^T(A-WH)$.