ConvexCredalSet

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

Bases: CategoricalCredalSet, Generic

A credal set defined by the convex hull of a set of distributions.

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.ConvexCredalSet

Plotting credal sets on the simplex

Plotting credal sets on the simplex

Plotting credal sets on a spider (radar) chart

Plotting credal sets on a spider (radar) chart

Convex credal set

Convex credal set