RandomRepresentationPredictor

class probly.predictor.RandomRepresentationPredictor(*args, **kwargs)[source]

Bases: RepresentationPredictor[In, Out], RandomPredictor[In, Out], Protocol, Generic[In, Out]

Protocol for non-deterministic predictors that return a distribution over outputs.

The reason this intersection type is defined explicitly is to allow of representer dispatch precedence for random representation predictors over regular representation predictors.

sample_space[source]

alias of Distribution