mushi.loss_functions.lsq

lsq(E, X)[source]

Least-squares loss

\[\frac{1}{2} \| \mathbb{E}[\mathbf X] - \mathbf X \|_F^2\]
Parameters
  • E (ndarray) – expectation \(\mathbb{E}[\mathbf X]\)

  • X (ndarray) – data \(\mathbf X\)

Return type

float64