APSScore

class probly.conformal_scores.aps.APSScore(randomized: bool = True)[source]

Bases: object

Configurable APS nonconformity-score callable.

__call__(y_pred: Any, y_true: Any | None = None) → Any[source]

Compute APS scores with constructor-provided configuration.

randomized: bool

Examples using probly.conformal_scores.aps.APSScore

Classification Conformal Prediction — sklearn

Classification Conformal Prediction — sklearn

Classification Conformal Prediction — PyTorch

Classification Conformal Prediction — PyTorch

How Conformal Sets Change with the Score and with Alpha

How Conformal Sets Change with the Score and with Alpha