mushi.loss_functions.prf

prf(E, X)[source]

Poisson random field loss

\[\sum_{i,j} \left( \mathbb{E}[X_{i, j}] - X_{i, j} \log \mathbb{E}[X_{i, j}] \right)\]
Parameters
  • E (ndarray) – expectation \(\mathbb{E}[\mathbf X]\)

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

Return type

float64