DistanceBasedCredalSet¶
- class probly.representation.credal_set.DistanceBasedCredalSet(*args, **kwargs)[source]¶
Bases:
CategoricalCredalSet,GenericA credal set defined by a distance metric around a central distribution.
- abstract property barycenter: T¶
Return the barycenter of the credal set.
- abstractmethod classmethod from_sample(sample: Sample[T]) Self[source]¶
Create a credal set from a finite sample.
- Parameters:
sample – The sample to create the credal set from.
- Returns:
The created credal set.
- abstract property nominal: T¶
The nominal distribution.