torch_compute_representative_sample¶
- probly.representer.credal_set_torch.torch_compute_representative_sample(sample: TorchSample[TorchCategoricalDistribution], alpha: float, distance: str) TorchSample[TorchCategoricalDistribution][source]¶
Select predictions closest to the sample mean under the requested distance.