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.

__call__(*args: In.args, **kwargs: In.kwargs) R[source]

Alias for the represent method.

alpha: float
distance: str
predict(*args: In.args, **kwargs: In.kwargs) R[source]

Predict the representation for a given input.

predictor
represent(*args: In.args, **kwargs: In.kwargs) C[source]

Build a convex credal set for the given input.