CategoricalCredalSet

class probly.representation.credal_set.CategoricalCredalSet(*args, **kwargs)[source]

Bases: CredalSet, Generic

Base class for credal sets.

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 num_classes: int

Return the number of classes in the credal set.

type: ClassVar[Literal['categorical']] = 'categorical'

Examples using probly.representation.credal_set.CategoricalCredalSet

Convex credal set

Convex credal set

Discrete credal set

Discrete credal set

Distance-based credal set

Distance-based credal set

Probability-intervals credal set

Probability-intervals credal set

Singleton credal set

Singleton credal set