incerto.bayesian.sharpness

Contents

incerto.bayesian.sharpness#

incerto.bayesian.sharpness(predictions)[source]#

Compute sharpness of probabilistic predictions.

Sharpness measures how concentrated the predictive distribution is. Lower entropy = sharper predictions.

Parameters:

predictions (Tensor) – Predictions (batch_size, num_classes)

Return type:

float

Returns:

Average entropy (lower = sharper)