I have following expression:
$||Y- XW||_F^2$.
Where
$Y \in R^{n \times K}, X \in R^{n \times p}, W\in R^{p \times K}$
I would like to take the derivative of it w.r.t W and here is what I think it should be : $-2X||Y-XW||_F$ I'm not sure whether this is the right derivation. Could you please check it ?