incerto.conformal.inductive_conformal

incerto.conformal.inductive_conformal#

incerto.conformal.inductive_conformal(model, calib_loader, alpha)[source]#

Classical Inductive Conformal Prediction (ICP) — Vovk, Gammerman, and Shafer, Algorithmic Learning in a Random World (2005).

Returns a predictor f̂(x) that outputs a prediction set (classification) or interval (regression) for any new x.

Parameters:
Return type:

Callable[[Tensor], List[Tensor]]