0

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

rajivpoc
  • 1
  • 1

1 Answers1

0

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)$.

copper.hat
  • 178,207