ConvexCredalSetRepresenter

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

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

Build a convex credal set from an iterable categorical predictor.

Initialize the representer.

Parameters:

predictor – The iterable predictor whose predictions form the credal-set vertices.

__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 a convex credal set for the given input.