mushi.loss_functions.lsq

lsq(E, X)[source]

Least-squares loss.

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

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

Return type:

float64