probly.representation.credal_set.torch.TorchCategoricalCredalSet¶
- class probly.representation.credal_set.torch.TorchCategoricalCredalSet(*args, **kwargs)[source]¶
Bases:
CategoricalCredalSet,ABCBase class for torch-backed categorical credal sets.
- abstract property barycenter: T¶
Return the barycenter of the credal set.
- classmethod from_sample(sample: Sample[TorchCategoricalDistribution]) 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.
- abstractmethod classmethod from_torch_sample(sample: TorchSample[TorchCategoricalDistribution]) Self[source]¶
Create a credal set from categorical distribution samples.
- type: CredalSetType = 'categorical'¶