You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ot/lp/__init__.py
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@
28
28
29
29
30
30
defcenter_ot_dual(alpha0, beta0, a=None, b=None):
31
-
r"""Center dual OT potentials wrt theirs weights
31
+
r"""Center dual OT potentials w.r.t. theirs weights
32
32
33
33
The main idea of this function is to find unique dual potentials
34
-
that ensure some kind of centering/fairness. It will help have
34
+
that ensure some kind of centering/fairness. The main idea is to find dual potentials that lead to the same final objective value for both source and targets (see below for more details). It will help having
35
35
stability when multiple calling of the OT solver with small changes.
36
36
37
37
Basically we add another constraint to the potential that will not
0 commit comments