torch_expected_calibration_error

probly.metrics.torch.torch_expected_calibration_error(y_prob: Tensor, y_true: Tensor, *, num_bins: int = 15) Tensor[source]

Compute the confidence expected calibration error for PyTorch tensors.