- class ott.geometry.costs.Cosine(ridge=1e-08)#
Cosine distance CostFn.
Compute matrix of all costs (including norms) for vectors in x / y.
Compute matrix of all pairwise-costs (no norms) for vectors in x / y.
Cosine distance between vectors, denominator regularized with ridge.
ridge (float) –