DirichletDistribution

class probly.representation.distribution.DirichletDistribution(*args, **kwargs)[source]

Bases: SecondOrderDistribution, Generic

Base class for Dirichlet distributions.

abstract property alphas: Any

Get the concentration parameters of the Dirichlet distribution.

entropy() → ArrayLike[source]

Compute entropy.

abstract property mean: T

Get the mean of the Dirichlet distribution.

protected_axes: ClassVar[dict[str, int]] = {'alphas': 1}
abstractmethod sample(num_samples: int) → Sample[T][source]

Draw samples from Distribution.

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

Examples using probly.representation.distribution.DirichletDistribution

Second order: a parameterized Dirichlet

Second order: a parameterized Dirichlet