Skip to content

Commit 052ccad

Browse files
committed
pep8
1 parent 364a429 commit 052ccad

34 files changed

+242
-389
lines changed
-197 KB
Binary file not shown.
-15 Bytes
Binary file not shown.
261 Bytes
Loading
-2.66 KB
Loading
-3.11 KB
Loading

docs/source/auto_examples/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
POT Examples
44
============
55

6-
This is a gallery of all the POT example files.
6+
This is a gallery of all the POT example files.
77

88

99

1010
.. raw:: html
1111

12-
<div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of EMD and Sinkhorn transport plans and their visuali...">
12+
<div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of EMD and Sinkhorn transport plans and their visualiz...">
1313

1414
.. only:: html
1515

@@ -69,7 +69,7 @@ This is a gallery of all the POT example files.
6969

7070
.. raw:: html
7171

72-
<div class="sphx-glr-thumbcontainer" tooltip="Shows how to compute multiple EMD and Sinkhorn with two differnt ground metrics and plot their...">
72+
<div class="sphx-glr-thumbcontainer" tooltip="Shows how to compute multiple EMD and Sinkhorn with two differnt ground metrics and plot their ...">
7373

7474
.. only:: html
7575

@@ -129,7 +129,7 @@ This is a gallery of all the POT example files.
129129

130130
.. raw:: html
131131

132-
<div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of regularized Wassersyein Barycenter as proposed in ...">
132+
<div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of regularized Wassersyein Barycenter as proposed in [...">
133133

134134
.. only:: html
135135

@@ -149,7 +149,7 @@ This is a gallery of all the POT example files.
149149

150150
.. raw:: html
151151

152-
<div class="sphx-glr-thumbcontainer" tooltip="OT for domain adaptation with image color adaptation [6] with mapping estimation [8].">
152+
<div class="sphx-glr-thumbcontainer" tooltip="OT for domain adaptation with image color adaptation [6] with mapping estimation [8].">
153153

154154
.. only:: html
155155

docs/source/auto_examples/plot_OT_1D.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"source": [
18-
"\n# 1D optimal transport\n\n\nThis example illustrates the computation of EMD and Sinkhorn transport plans \nand their visualization.\n\n\n"
18+
"\n# 1D optimal transport\n\n\nThis example illustrates the computation of EMD and Sinkhorn transport plans\nand their visualization.\n\n\n"
1919
],
2020
"cell_type": "markdown",
2121
"metadata": {}
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"source": [
36-
"Generate data\n##############\n\n"
36+
"Generate data\n#############\n\n"
3737
],
3838
"cell_type": "markdown",
3939
"metadata": {}

docs/source/auto_examples/plot_OT_1D.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
1D optimal transport
55
====================
66
7-
This example illustrates the computation of EMD and Sinkhorn transport plans
7+
This example illustrates the computation of EMD and Sinkhorn transport plans
88
and their visualization.
99
1010
"""
@@ -20,7 +20,8 @@
2020

2121
##############################################################################
2222
# Generate data
23-
###############
23+
# #############
24+
2425

2526
#%% parameters
2627

docs/source/auto_examples/plot_OT_1D.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
1D optimal transport
88
====================
99

10-
This example illustrates the computation of EMD and Sinkhorn transport plans
10+
This example illustrates the computation of EMD and Sinkhorn transport plans
1111
and their visualization.
1212

1313

@@ -32,13 +32,14 @@ and their visualization.
3232
3333
3434
Generate data
35-
##############
35+
#############
3636

3737

3838

3939
.. code-block:: python
4040
4141
42+
4243
#%% parameters
4344
4445
n = 100 # nb bins
@@ -168,7 +169,7 @@ Solve Sinkhorn
168169
110|1.527180e-10|
169170

170171

171-
**Total running time of the script:** ( 0 minutes 0.680 seconds)
172+
**Total running time of the script:** ( 0 minutes 0.704 seconds)
172173

173174

174175

docs/source/auto_examples/plot_OT_L1_vs_L2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
##############################################################################
7777

7878

79-
8079
#%% EMD
8180
G1 = ot.emd(a, b, M1)
8281
G2 = ot.emd(a, b, M2)
@@ -172,7 +171,6 @@
172171
##############################################################################
173172

174173

175-
176174
#%% EMD
177175
G1 = ot.emd(a, b, M1)
178176
G2 = ot.emd(a, b, M2)

0 commit comments

Comments
 (0)