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.