TorchUncertaintyConformalRepresenter

class probly.integrations.torch_uncertainty.TorchUncertaintyConformalRepresenter(predictor: Predictor[In, Out], *_args: CtrIn.args, **_kwargs: CtrIn.kwargs)[source]

Bases: Representer[Any, In, Out, Out], Generic[In, Out]

Representer for torch-uncertainty conformal classifiers.

Initialize the representer with a predictor.

Parameters:

predictor – The predictor to be used for building representations.

__call__(*args: In.args, **kwargs: In.kwargs) R[source]

Alias for the represent method.

predict(*args: In.args, **kwargs: In.kwargs) R[source]

Predict the representation for a given input.

predictor: Predictor[In, Out]
represent(*args: In.args, **kwargs: In.kwargs) Out[source]

Build a representation for a given input.