ott.tools.sinkhorn_divergence.sinkdiv#
- ott.tools.sinkhorn_divergence.sinkdiv(x, y, *, cost_fn=None, epsilon=None, **kwargs)[source]#
Wrapper to get the Sinkhorn divergence between two point clouds.
Convenience wrapper around
sinkhorn_divergence()provided to compute the Sinkhorn divergence between two point clouds compared with any ground costCostFn. See other relevant arguments insinkhorn_divergence().- Parameters:
x (
Array) – Array of input points, of shape [num_x, feature].y (
Array) – Array of target points, of shape [num_y, feature].kwargs (
Any) – keywords arguments passed on to the genericsinkhorn_divergence()method. Of notable interest areaandbweight vectors,static_bandoffset_static_bwhich can be used to bypass the computations of the transport problem between points stored iny(possibly with weightsb) and themselves, andsolve_kwargsto parameterize the linear OT solver.
- Return type:
- Returns:
The Sinkhorn divergence value, and output object detailing computations.