incerto.calibration.extract_confidences_and_predictions

incerto.calibration.extract_confidences_and_predictions#

incerto.calibration.extract_confidences_and_predictions(logits)[source]#

Extract confidence scores and predictions from logits.

Parameters:

logits (Tensor) – Tensor of shape (n_samples, n_classes).

Returns:

Tuple of (confidences, predictions) as numpy arrays.