DirichletLevelSetCredalSet

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

Bases: CategoricalCredalSet, Generic

A credal set defined as a Dirichlet density level set.

abstract property alphas: Any

The Dirichlet concentration parameters.

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.

protected_axes: ClassVar[dict[str, int]] = {'alphas': 1, 'threshold': 0}
abstract property threshold: Any

The density threshold.

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