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.