bregman.application.distribution.mixture package

Subpackages

Submodules

bregman.application.distribution.mixture.mixture module

exception bregman.application.distribution.mixture.mixture.MixingDimensionMissMatch

Bases: Exception

Exception when mixing weights do not match the number of distributions provided.

class bregman.application.distribution.mixture.mixture.MixtureDistribution(weights: ndarray, distributions: Sequence[MixedDistribution])

Bases: Distribution, Generic[MixedDistribution]

Mixture distributions with mixed mixing components.

weights

Mixture weights.

distributions

Mixture components.

pdf(x: ndarray) ndarray

P.d.f. of a mixture distribution.

Parameters:

x – Sample space input.

Returns:

Mixture distribution’s p.d.f. evaluated at x.

class bregman.application.distribution.mixture.mixture.MixtureManifold(distributions: Sequence[MixedDistribution])

Bases: DistributionManifold[MixturePoint, MixtureDistribution[MixedDistribution]], Generic[MixedDistribution], ABC

Abstract Mixture manifold.

distributions

Mixing components.

distribution_to_point(distribution: MixtureDistribution) MixturePoint

Converts a Mixture distribution to a point in the manifold.

Parameters:

distribution – Mixture distribution to be converted.

Returns:

Point corresponding to the Mixture distribution.

jensen_shannon_divergence(point_1: Point, point_2: Point) ndarray

Jensen-Shannon Divergence of two points in a Mixture manifold.

Parameters:
  • point_1 – Left-sided argument of the Jensen-Shannon Divergence.

  • point_2 – Right-sided argument of the Jensen-Shannon Divergence.

Returns:

Jensen-Shannon Divergence between point_1 and point_2 on the Mixture manifold.

kl_divergence(point_1: Point, point_2: Point) ndarray

KL-Divergence of two points in a Mixture manifold.

Parameters:
  • point_1 – Left-sided argument of the KL-Divergence.

  • point_2 – Right-sided argument of the KL-Divergence.

Returns:

KL-Divergence between point_1 and point_2 on the Mixture manifold.

point_to_distribution(point: Point) MixtureDistribution

Converts a point to a Mixture distribution.

Parameters:

point – Point to be converted.

Returns:

Mixture distribution corresponding to the point.

set_distributions(distributions: Sequence[MixedDistribution]) None

Set mixing component distributions of the manifold.

Parameters:

distributions – Mixing components.

class bregman.application.distribution.mixture.mixture.MixturePoint(point: Point)

Bases: DisplayPoint

Display point for Mixture distributions.

display() str

Generated pretty printed string on display.

Returns:

String of weights values of Mixture point.

Module contents