Skip to content

Commit f251b4d

Browse files
authored
Merge pull request #99 from hichamjanati/unbalanced-bar
[MRG] Add stabilization for unbalanced OT and barycenter computation
2 parents abfe183 + e0c935a commit f251b4d

File tree

9 files changed

+1340
-458
lines changed

9 files changed

+1340
-458
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ coverage.xml
5959
*.mo
6060
*.pot
6161

62+
# xml
63+
*.xml
64+
6265
# Django stuff:
6366
*.log
6467
local_settings.py

docs/source/quickstart.rst

Lines changed: 97 additions & 51 deletions
Large diffs are not rendered by default.

ot/__init__.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
3-
This is the main module of the POT toolbox. It provides easy access to
4-
a number of sub-modules and functions described below.
3+
This is the main module of the POT toolbox. It provides easy access to
4+
a number of sub-modules and functions described below.
55
66
.. note::
77
@@ -14,27 +14,27 @@
1414
- :any:`ot.lp` contains OT solvers for the exact (Linear Program) OT problems.
1515
- :any:`ot.smooth` contains OT solvers for the regularized (l2 and kl) smooth OT
1616
problems.
17-
- :any:`ot.gromov` contains solvers for Gromov-Wasserstein and Fused Gromov
17+
- :any:`ot.gromov` contains solvers for Gromov-Wasserstein and Fused Gromov
1818
Wasserstein problems.
19-
- :any:`ot.optim` contains generic solvers OT based optimization problems
19+
- :any:`ot.optim` contains generic solvers OT based optimization problems
2020
- :any:`ot.da` contains classes and function related to Monge mapping
2121
estimation and Domain Adaptation (DA).
2222
- :any:`ot.gpu` contains GPU (cupy) implementation of some OT solvers
23-
- :any:`ot.dr` contains Dimension Reduction (DR) methods such as Wasserstein
23+
- :any:`ot.dr` contains Dimension Reduction (DR) methods such as Wasserstein
2424
Discriminant Analysis.
25-
- :any:`ot.utils` contains utility functions such as distance computation and
26-
timing.
25+
- :any:`ot.utils` contains utility functions such as distance computation and
26+
timing.
2727
- :any:`ot.datasets` contains toy dataset generation functions.
2828
- :any:`ot.plot` contains visualization functions
2929
- :any:`ot.stochastic` contains stochastic solvers for regularized OT.
3030
- :any:`ot.unbalanced` contains solvers for regularized unbalanced OT.
3131
3232
.. warning::
33-
The list of automatically imported sub-modules is as follows:
33+
The list of automatically imported sub-modules is as follows:
3434
:py:mod:`ot.lp`, :py:mod:`ot.bregman`, :py:mod:`ot.optim`
3535
:py:mod:`ot.utils`, :py:mod:`ot.datasets`,
3636
:py:mod:`ot.gromov`, :py:mod:`ot.smooth`
37-
:py:mod:`ot.stochastic`
37+
:py:mod:`ot.stochastic`
3838
3939
The following sub-modules are not imported due to additional dependencies:
4040
@@ -65,7 +65,7 @@
6565
# OT functions
6666
from .lp import emd, emd2, emd_1d, emd2_1d, wasserstein_1d
6767
from .bregman import sinkhorn, sinkhorn2, barycenter
68-
from .unbalanced import sinkhorn_unbalanced, barycenter_unbalanced
68+
from .unbalanced import sinkhorn_unbalanced, barycenter_unbalanced, sinkhorn_unbalanced2
6969
from .da import sinkhorn_lpl1_mm
7070

7171
# utils functions
@@ -77,4 +77,5 @@
7777
'bregman', 'lp', 'tic', 'toc', 'toq', 'gromov',
7878
'emd_1d', 'emd2_1d', 'wasserstein_1d',
7979
'dist', 'unif', 'barycenter', 'sinkhorn_lpl1_mm', 'da', 'optim',
80-
'sinkhorn_unbalanced', "barycenter_unbalanced"]
80+
'sinkhorn_unbalanced', 'barycenter_unbalanced',
81+
'sinkhorn_unbalanced2']

0 commit comments

Comments
 (0)