Skip to content

Commit ad7aa89

Browse files
committed
better doc per module
1 parent b9ad0ee commit ad7aa89

File tree

10 files changed

+14
-41
lines changed

10 files changed

+14
-41
lines changed

ot/__init__.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
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.
5-
6-
.. note::
7-
8-
9-
Here is a list of the submodules and short description of what they contain.
10-
11-
- :any:`ot.lp` contains OT solvers for the exact (Linear Program) OT problems.
12-
- :any:`ot.bregman` contains OT solvers for the entropic OT problems using
13-
Bregman projections.
14-
- :any:`ot.lp` contains OT solvers for the exact (Linear Program) OT problems.
15-
- :any:`ot.smooth` contains OT solvers for the regularized (l2 and kl) smooth OT
16-
problems.
17-
- :any:`ot.gromov` contains solvers for Gromov-Wasserstein and Fused Gromov
18-
Wasserstein problems.
19-
- :any:`ot.optim` contains generic solvers OT based optimization problems
20-
- :any:`ot.da` contains classes and function related to Monge mapping
21-
estimation and Domain Adaptation (DA).
22-
- :any:`ot.gpu` contains GPU (cupy) implementation of some OT solvers
23-
- :any:`ot.dr` contains Dimension Reduction (DR) methods such as Wasserstein
24-
Discriminant Analysis.
25-
- :any:`ot.utils` contains utility functions such as distance computation and
26-
timing.
27-
- :any:`ot.datasets` contains toy dataset generation functions.
28-
- :any:`ot.plot` contains visualization functions
29-
- :any:`ot.stochastic` contains stochastic solvers for regularized OT.
30-
- :any:`ot.unbalanced` contains solvers for regularized unbalanced OT.
31-
- :any:`ot.partial` contains solvers for partial OT.
32-
333
.. warning::
344
The list of automatically imported sub-modules is as follows:
355
:py:mod:`ot.lp`, :py:mod:`ot.bregman`, :py:mod:`ot.optim`

ot/bregman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Bregman projections for regularized OT
3+
Bregman projections solvers for entropic regularized OT
44
"""
55

66
# Author: Remi Flamary <remi.flamary@unice.fr>

ot/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Simple example datasets for OT
2+
Simple example datasets
33
"""
44

55
# Author: Remi Flamary <remi.flamary@unice.fr>

ot/dr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Dimension reduction with optimal transport
3+
Dimension reduction with OT
44
55
66
.. warning::
7-
Note that by default the module is not import in :mod:`ot`. In order to
7+
Note that by default the module is not imported in :mod:`ot`. In order to
88
use it you need to explicitely import :mod:`ot.dr`
99
1010
"""

ot/gpu/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- coding: utf-8 -*-
22
"""
3+
GPU implementation for several OT solvers and utility
4+
functions.
35
4-
This module provides GPU implementation for several OT solvers and utility
5-
functions. The GPU backend in handled by `cupy
6+
The GPU backend in handled by `cupy
67
<https://cupy.chainer.org/>`_.
78
89
.. warning::

ot/gromov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Gromov-Wasserstein transport method
3+
Gromov-Wasserstein and Fused-Gromov-Wasserstein solvers
44
"""
55

66
# Author: Erwan Vautier <erwan.vautier@gmail.com>

ot/optim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Optimization algorithms for OT
3+
Generic solvers for regularized OT
44
"""
55

66
# Author: Remi Flamary <remi.flamary@unice.fr>

ot/partial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Partial OT
3+
Partial OT solvers
44
"""
55

66
# Author: Laetitia Chapel <laetitia.chapel@irisa.fr>

ot/smooth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
# Remi Flamary <remi.flamary@unice.fr>
2727

2828
"""
29-
Implementation of
29+
Smooth and Sparse Optimal Transport solvers (KL an L2 reg.)
30+
31+
Implementation of :
3032
Smooth and Sparse Optimal Transport.
3133
Mathieu Blondel, Vivien Seguy, Antoine Rolet.
3234
In Proc. of AISTATS 2018.

ot/unbalanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Regularized Unbalanced OT
3+
Regularized Unbalanced OT solvers
44
"""
55

66
# Author: Hicham Janati <hicham.janati@inria.fr>

0 commit comments

Comments
 (0)