geomstats.variants.information_geometry package#

Subpackages#

Submodules#

geomstats.variants.information_geometry.beta module#

Fisher-Rao metric on Beta distributions given only by its metric matrix.

class geomstats.variants.information_geometry.beta.BetaMetric(space, signature=None)[source]#

Bases: CoordinateRiemannianMetric

Fisher-Rao metric on Beta distributions given only by its metric matrix.

The Christoffel symbols and the curvature tensors are computed from the metric matrix with automatic differentiation, instead of the closed forms of geomstats.information_geometry.beta.BetaMetric.

metric_matrix(base_point)[source]#

Compute the inner-product matrix.

Parameters:

base_point (array-like, shape=[…, 2]) – Base point.

Returns:

mat (array-like, shape=[…, 2, 2]) – Inner-product matrix.

geomstats.variants.information_geometry.binomial module#

Variants of the Fisher-Rao metric on binomial distributions.

class geomstats.variants.information_geometry.binomial.BinomialMetric(space, signature=None)[source]#

Bases: CoordinateRiemannianMetric

Fisher-Rao metric on binomial distributions given by its metric matrix.

The Christoffel symbols and the curvature tensors are computed from the metric matrix with automatic differentiation, instead of the closed forms of geomstats.information_geometry.binomial.BinomialMetric.

metric_matrix(base_point)[source]#

Compute the inner-product matrix.

Parameters:

base_point (array-like, shape=[…, 1]) – Base point.

Returns:

mat (array-like, shape=[…, 1, 1]) – Inner-product matrix.

class geomstats.variants.information_geometry.binomial.PullbackBinomialMetric(space)[source]#

Bases: CoordinatePullbackDiffeoMetric

Fisher-Rao metric on binomial distributions as a pullback metric.

Variant of geomstats.information_geometry.binomial.BinomialMetric without its closed forms: the Christoffel symbols and the curvature tensors are computed from the pullback metric matrix with automatic differentiation.

geomstats.variants.information_geometry.dirichlet module#

Fisher-Rao metric on Dirichlet distributions given only by its metric matrix.

class geomstats.variants.information_geometry.dirichlet.DirichletMetric(space, signature=None)[source]#

Bases: CoordinateRiemannianMetric

Fisher-Rao metric on Dirichlet distributions given only by its metric matrix.

The Christoffel symbols and the curvature tensors are computed from the metric matrix with automatic differentiation, instead of the closed forms of geomstats.information_geometry.dirichlet.DirichletMetric.

metric_matrix(base_point)[source]#

Compute the inner-product matrix.

Parameters:

base_point (array-like, shape=[…, dim]) – Base point.

Returns:

mat (array-like, shape=[…, dim, dim]) – Inner-product matrix.

geomstats.variants.information_geometry.gamma module#

Fisher-Rao metric on Gamma distributions given only by its metric matrix.

class geomstats.variants.information_geometry.gamma.GammaMetric(space, signature=None)[source]#

Bases: CoordinateRiemannianMetric

Fisher-Rao metric on Gamma distributions given only by its metric matrix.

The Christoffel symbols and the curvature tensors are computed from the metric matrix with automatic differentiation, instead of the closed forms of geomstats.information_geometry.gamma.GammaMetric.

metric_matrix(base_point)[source]#

Compute the inner-product matrix.

Parameters:

base_point (array-like, shape=[…, 2]) – Base point.

Returns:

mat (array-like, shape=[…, 2, 2]) – Inner-product matrix.

geomstats.variants.information_geometry.geometric module#

Variants of the Fisher-Rao metric on geometric distributions.

class geomstats.variants.information_geometry.geometric.GeometricMetric(space, signature=None)[source]#

Bases: CoordinateRiemannianMetric

Fisher-Rao metric on geometric distributions given by its metric matrix.

The Christoffel symbols and the curvature tensors are computed from the metric matrix with automatic differentiation, instead of the closed forms of geomstats.information_geometry.geometric.GeometricMetric.

metric_matrix(base_point)[source]#

Compute the inner-product matrix.

Parameters:

base_point (array-like, shape=[…, 1]) – Base point.

Returns:

mat (array-like, shape=[…, 1, 1]) – Inner-product matrix.

class geomstats.variants.information_geometry.geometric.PullbackGeometricMetric(space)[source]#

Bases: CoordinatePullbackDiffeoMetric

Fisher-Rao metric on geometric distributions as a pullback metric.

Variant of geomstats.information_geometry.geometric.GeometricMetric without its closed forms: the Christoffel symbols and the curvature tensors are computed from the pullback metric matrix with automatic differentiation.

Module contents#

Alternative implementations of geometries in geomstats.information_geometry.