Skip to content

Losses

tinytopics.loss

poisson_nmf_loss(X, X_reconstructed)

Compute the Poisson NMF loss function (negative log-likelihood).

Parameters:

Name Type Description Default
X Tensor

Original document-term matrix.

required
X_reconstructed Tensor

Reconstructed matrix from the model.

required

Returns:

Type Description
Tensor

The computed Poisson NMF loss.