EvidentialClassificationRepresenter

class probly.method.evidential.classification.EvidentialClassificationRepresenter(predictor: Predictor[In, Out], *_args: CtrIn.args, **_kwargs: CtrIn.kwargs)[source]

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

Representer for evidential classification predictors.

Calls predict() on the wrapped EDL predictor and marks the resulting DirichletDistribution as an EvidentialClassificationRepresentation, which lets decompose() auto-route the output to EvidentialClassificationDecomposition.

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.

represent(*args: In.args, **kwargs: In.kwargs) → EvidentialClassificationRepresentation[source]

Return a marked EDL representation for a given input.

Examples using probly.method.evidential.classification.EvidentialClassificationRepresenter

Evidential on Two Moons

Evidential on Two Moons

Evidential on MNIST

Evidential on MNIST