OneHotConformalSet

class probly.representation.conformal_set.OneHotConformalSet(*args, **kwargs)[source]

Bases: ConformalSet, Generic

A conformal set represented as a one-hot vector.

abstractmethod classmethod from_sample(sample: Sample[T]) → Self[source]

Create a one-hot conformal set from a sample.

Parameters:

sample – The sample to create the conformal set from.

Returns:

The created conformal set.

abstract property set_size: Any

Return the sizes of the conformal sets.

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

Examples using probly.representation.conformal_set.OneHotConformalSet

Sets of outcomes

Sets of outcomes