Skip to content

Commit c098a15

Browse files
committed
remarques cédri
1 parent 129d905 commit c098a15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

RELEASES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
+ Add exact line-search for `gromov_wasserstein` and `fused_gromov_wasserstein` with KL loss (PR #556)
1717
+ Add KL loss to all semi-relaxed (Fused) Gromov-Wasserstein solvers (PR #559)
1818
+ Further upgraded unbalanced OT solvers for more flexibility and future use (PR #551)
19+
+ New API function `ot.solve_sample` for solving OT problems from empirical samples (PR #563)
1920

2021
#### Closed issues
2122
- Fix line search evaluating cost outside of the interpolation range (Issue #502, PR #504)

ot/bregman/_empirical.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919

2020
def get_sinkhorn_lazytensor(X_a, X_b, f, g, metric='sqeuclidean', reg=1e-1, nx=None):
21-
""" Get a LazyTensor of sinkhorn solution T = exp(f+g^T-C/reg)
21+
r""" Get a LazyTensor of Sinkhorn solution from the dual potentials
22+
23+
The returned LazyTensor is
24+
:math:`\mathbf{T} = exp( \mathbf{f} \mathbf{1}_b^\top + \mathbf{1}_a \mathbf{g}^\top - \mathbf{C}/reg)`, where :math:`\mathbf{C}` is the pairwise metric matrix between samples :math:`\mathbf{X}_a` and :math:`\mathbf{X}_b`.
2225
2326
Parameters
2427
----------
@@ -41,7 +44,7 @@ def get_sinkhorn_lazytensor(X_a, X_b, f, g, metric='sqeuclidean', reg=1e-1, nx=N
4144
Returns
4245
-------
4346
T : LazyTensor
44-
Lowrank tensor T = exp(f+g^T-C/reg)
47+
Sinkhorn solution tensor
4548
"""
4649

4750
if nx is None:

0 commit comments

Comments
 (0)