Representer

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

Bases: RepresentationPredictor[In, R], ABC, Generic[CtrIn, In, Out, R]

Abstract base class for representation builders.

A representer is a configurable representation predictor which wraps a base predictor and builds a representation for its predictions. The base predictor is passed to the representer during initialization and can be used to build the representation in the represent method.

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.

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

Build a representation for a given input.

Examples using probly.representer.Representer

DARE on Two Moons

DARE on Two Moons