probly.representation.distribution.mixture_dirichlet¶
Mixture distribution for Dirichlet components.
Classes
|
Dirichlet mixture distribution. |
- class probly.representation.distribution.mixture_dirichlet.ArrayDirichletMixture(components, weights)[source]¶
Bases:
objectDirichlet mixture distribution.
- Parameters:
components (Sequence[ArrayDirichlet])
weights (np.ndarray)
- sample(num_samples, rng=None)[source]¶
Sample from the mixture.
Returns:¶
- ArraySample
Samples with shape: (num_samples, *alphas.shape).
- Parameters:
- Return type:
- components: Sequence[ArrayDirichlet]¶
- property dtype: DTypeLike¶
The data type of the underlying array.
- weights: np.ndarray¶