incerto.bayesian.negative_log_likelihood

incerto.bayesian.negative_log_likelihood#

incerto.bayesian.negative_log_likelihood(predictions, labels)[source]#

Compute negative log-likelihood of predictions.

Parameters:
  • predictions (Tensor) – Mean predictions (batch_size, num_classes)

  • labels (Tensor) – True labels (batch_size,)

Return type:

float

Returns:

NLL score