- ott.tools.sinkhorn_divergence.sinkhorn_divergence(geom, *args, a=None, b=None, sinkhorn_kwargs=None, static_b=False, share_epsilon=True, **kwargs)#
Compute Sinkhorn divergence defined by a geometry, weights, parameters.
Geometry) – a geometry class.
Any) – arguments to
ott.geometry.geometry.Geometry.prepare_divergences()that is specific to each geometry.
bool) – if True, divergence of measure b against itself is NOT computed
bool) – if True, enforces that the same epsilon regularizer is shared for all 2 or 3 terms of the Sinkhorn divergence. In that case, the epsilon will be by default that used when comparing x to y (contained in the first geometry). This flag is set to True by default, because in the default setting, the epsilon regularization is a function of the mean of the cost matrix.
Any) – keywords arguments to the generic class. This is specific to each geometry.
(sinkhorn divergence value, three pairs of potentials, three costs)
- Return type