RepresentativeConvexCredalSetRepresenter¶
- class probly.representer.credal_set.RepresentativeConvexCredalSetRepresenter(predictor: IterablePredictor[In, Out], alpha: float = 0.0, distance: str = 'euclidean')[source]¶
Bases:
ConvexCredalSetRepresenter[In,Out,C],Generic[In,Out,C]Build a convex credal set from a representative subset of iterable predictions.
Initialize the representer.
- Parameters:
predictor – The iterable predictor whose predictions form the candidate vertices.
alpha – Fraction of the most distant predictions to discard.
distance – Distance metric used to identify representative predictions.
- predict(*args: In.args, **kwargs: In.kwargs) R[source]¶
Predict the representation for a given input.
- predictor¶