Skip to content

Commit 321d454

Browse files
authored
Merge branch 'master' into prepare_v0.7
2 parents 904edc0 + e65c1f7 commit 321d454

15 files changed

+110
-88
lines changed

.github/requirements_strict.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
numpy==1.16.*
2+
scipy==1.0.*
3+
cython==0.23.*
4+
matplotlib
5+
cvxopt
6+
scikit-learn
7+
pytest

.github/workflows/build_tests.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: build
22

33
on:
44
push:
5-
branches:
6-
- '**'
5+
76
pull_request:
7+
88
create:
99
branches:
1010
- 'master'
@@ -49,6 +49,34 @@ jobs:
4949
codecov
5050
5151
52+
linux-minimal-deps:
53+
54+
runs-on: ubuntu-latest
55+
strategy:
56+
max-parallel: 4
57+
matrix:
58+
python-version: [3.6]
59+
60+
steps:
61+
- uses: actions/checkout@v1
62+
- name: Set up Python ${{ matrix.python-version }}
63+
uses: actions/setup-python@v1
64+
with:
65+
python-version: ${{ matrix.python-version }}
66+
- name: Install dependencies
67+
run: |
68+
python -m pip install --upgrade pip
69+
pip install -r .github/requirements_strict.txt
70+
pip install pytest
71+
pip install -U "sklearn"
72+
- name: Install POT
73+
run: |
74+
pip install -e .
75+
- name: Run tests
76+
run: |
77+
python -m pytest -v test/ ot/ --ignore ot/gpu/
78+
79+
5280
macos:
5381
runs-on: macOS-latest
5482
strategy:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ year={2017}
6969

7070
The library has been tested on Linux, MacOSX and Windows. It requires a C++ compiler for building/installing the EMD solver and relies on the following Python modules:
7171

72-
- Numpy (>=1.11)
72+
- Numpy (>=1.16)
7373
- Scipy (>=1.0)
7474
- Cython (>=0.23)
7575
- Matplotlib (>=1.5)

examples/barycenters/plot_free_support_barycenter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
2D free support Wasserstein barycenters of distributions
55
====================================================
66
7-
Illustration of 2D Wasserstein barycenters if discributions that are weighted
7+
Illustration of 2D Wasserstein barycenters if distributions are weighted
88
sum of diracs.
99
1010
"""
@@ -21,7 +21,7 @@
2121
##############################################################################
2222
# Generate data
2323
# -------------
24-
#%% parameters and data generation
24+
2525
N = 3
2626
d = 2
2727
measures_locations = []
@@ -46,7 +46,7 @@
4646

4747
##############################################################################
4848
# Compute free support barycenter
49-
# -------------
49+
# -------------------------------
5050

5151
k = 10 # number of Diracs of the barycenter
5252
X_init = np.random.normal(0., 1., (k, d)) # initial Dirac locations

examples/domain-adaptation/plot_otda_d2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import ot.plot
2626

2727
##############################################################################
28-
# generate data
28+
# Generate data
2929
# -------------
3030

3131
n_samples_source = 150

examples/domain-adaptation/plot_otda_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
a linear or a kernelized mapping as introduced in [8].
1010
1111
[8] M. Perrot, N. Courty, R. Flamary, A. Habrard,
12-
"Mapping estimation for discrete optimal transport",
13-
Neural Information Processing Systems (NIPS), 2016.
12+
"Mapping estimation for discrete optimal transport",
13+
Neural Information Processing Systems (NIPS), 2016.
1414
"""
1515

1616
# Authors: Remi Flamary <remi.flamary@unice.fr>

examples/domain-adaptation/plot_otda_mapping_colors_images.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
1010
[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014). Regularized
1111
discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
12+
1213
[8] M. Perrot, N. Courty, R. Flamary, A. Habrard, "Mapping estimation for
1314
discrete optimal transport", Neural Information Processing Systems (NIPS), 2016.
1415

examples/gromov/plot_barycenter_fgw.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
Plot graphs' barycenter using FGW
55
=================================
66
7-
This example illustrates the computation barycenter of labeled graphs using FGW
7+
This example illustrates the computation barycenter of labeled graphs using
8+
FGW [18].
89
910
Requires networkx >=2
1011
11-
.. [18] Vayer Titouan, Chapel Laetitia, Flamary R{\'e}mi, Tavenard Romain
12-
and Courty Nicolas
13-
"Optimal Transport for structured data with application on graphs"
14-
International Conference on Machine Learning (ICML). 2019.
12+
[18] Vayer Titouan, Chapel Laetitia, Flamary Rémi, Tavenard Romain
13+
and Courty Nicolas
14+
"Optimal Transport for structured data with application on graphs"
15+
International Conference on Machine Learning (ICML). 2019.
1516
1617
"""
1718

examples/gromov/plot_fgw.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
Plot Fused-gromov-Wasserstein
55
==============================
66
7-
This example illustrates the computation of FGW for 1D measures[18].
7+
This example illustrates the computation of FGW for 1D measures [18].
88
9-
.. [18] Vayer Titouan, Chapel Laetitia, Flamary R{\'e}mi, Tavenard Romain
10-
and Courty Nicolas
11-
"Optimal Transport for structured data with application on graphs"
12-
International Conference on Machine Learning (ICML). 2019.
9+
[18] Vayer Titouan, Chapel Laetitia, Flamary Rémi, Tavenard Romain
10+
and Courty Nicolas
11+
"Optimal Transport for structured data with application on graphs"
12+
International Conference on Machine Learning (ICML). 2019.
1313
1414
"""
1515

examples/plot_compute_emd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Plot multiple EMD
55
=================
66
7-
Shows how to compute multiple EMD and Sinkhorn with two differnt
8-
ground metrics and plot their values for diffeent distributions.
7+
Shows how to compute multiple EMD and Sinkhorn with two different
8+
ground metrics and plot their values for different distributions.
99
1010
1111
"""

0 commit comments

Comments
 (0)