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
This open source Python library provide several solvers for optimization problems related to Optimal Transport for signal, image processing and machine learning.
4
7
5
8
It provides the following solvers:
9
+
6
10
* OT solver for the linear program/ Earth Movers Distance [1].
7
11
* Entropic regularization OT solver with Sinkhorn Knopp Algorithm [2].
8
12
* Bregman projections for Wasserstein barycenter [3] and unmixing [4].
9
13
* Optimal transport for domain adaptation with group lasso regularization [5]
10
14
* Conditional gradient [6] and Generalized conditional gradient for regularized OT [7].
11
15
16
+
We are also currently working on the following features:
17
+
18
+
-[ ] Image color adaptation demo
19
+
-[ ] Scikit-learn inspired classes for domain adaptation
20
+
-[ ] Mapping estimation as proposed in [8]
21
+
12
22
Some demonstrations (both in Python and Jupyter Notebook format) are available in the examples folder.
13
23
14
24
## Installation
@@ -17,13 +27,24 @@ The Library has been tested on Linux and MacOSX. It requires a C++ compiler for
17
27
18
28
- Numpy (>=1.11)
19
29
- Scipy (>=0.17)
30
+
- Cython (>=0.23)
31
+
- Matplotlib (>=1.5)
32
+
33
+
34
+
Under debian based linux the dependencies can be installed with
To install the library, you can install it locally (after downloading it) on you machine using
22
40
```
23
41
python setup.py install --user
24
42
```
25
43
26
-
44
+
The toolbox is also available on PyPI with a possibly slightly older version. You can install it with:
45
+
```
46
+
pip install POT
47
+
```
27
48
28
49
After a correct installation, you should be able to import the module without errors:
29
50
```python
@@ -34,19 +55,20 @@ Note that for easier access the module is name ot instead of pot.
34
55
35
56
## Examples
36
57
37
-
The examples folder contain several examples and use case for the library.
58
+
The examples folder contain several examples and use case for the library. The full documentation is available on [Readthedoc](http://pot.readthedocs.io/)
38
59
39
60
Here is a list of the Python notebook if you want a quick look:
@@ -73,3 +95,5 @@ This toolbox benefit a lot from open source research and we would like to thank
73
95
[6] Ferradans, S., Papadakis, N., Peyré, G., & Aujol, J. F. (2014). Regularized discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
74
96
75
97
[7] Rakotomamonjy, A., Flamary, R., & Courty, N. (2015). Generalized conditional gradient: analysis of convergence and applications. arXiv preprint arXiv:1510.06567.
98
+
99
+
[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, "Mapping estimation for discrete optimal transport", Neural Information Processing Systems (NIPS), 2016.
0 commit comments