ProbabilityIntervalsRepresenter

class probly.representer.credal_set.ProbabilityIntervalsRepresenter(predictor: IterablePredictor[In, Out])[source]

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

Build probability intervals from an iterable categorical predictor.

Initialize the representer.

Parameters:

predictor – The iterable predictor whose predictions define the intervals.

__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: IterablePredictor[In, Out]
represent(*args: In.args, **kwargs: In.kwargs) → C[source]

Build probability intervals for the given input.

Examples using probly.representer.credal_set.ProbabilityIntervalsRepresenter

Credal DRO Output Visualization

Credal DRO Output Visualization

Credal Relative Likelihood Visualization

Credal Relative Likelihood Visualization

Credal Relative Likelihood on MNIST

Credal Relative Likelihood on MNIST

Credal Wrapper Output Visualization

Credal Wrapper Output Visualization

Credal Wrapper on MNIST

Credal Wrapper on MNIST