waxmorph.jax.losses.make_sinkhorn_loss#
- waxmorph.jax.losses.make_sinkhorn_loss(blur=0.05, *, p=2, cost_fn=None, **solve_kwargs)[source]#
Build OTT’s debiased entropic-OT divergence for unordered clouds.
\[S_\varepsilon(\alpha,\beta)=\mathrm{OT}_\varepsilon(\alpha,\beta) -\tfrac12\mathrm{OT}_\varepsilon(\alpha,\alpha) -\tfrac12\mathrm{OT}_\varepsilon(\beta,\beta).\]blursetsepsilon = blur ** p. Withcost_fn=None,p=1selects Euclidean cost andp=2selects half squared Euclidean cost; other exponents use an explicit cost. An explicit cost replaces that selection, whilepstill sets the epsilon exponent.solve_kwargsare forwarded to OTT.The factory provides debiased Sinkhorn divergence with OTT options. PyTorch’s GeomLoss factory additionally provides MMD, Hausdorff,
scaling, andreachcontracts. Numerical values follow each solver’s options. OTT is imported lazily.