Skip to content

Commit ec67362

Browse files
committed
pep8
1 parent ac1d169 commit ec67362

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/plot_OT_1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
ot.plot.plot1D_mat(a, b, M, 'Cost matrix M')
5353

5454
##############################################################################
55-
# Solve EMD
55+
# Solve EMD
5656
##############################################################################
5757

5858
#%% EMD

examples/plot_optim_OTreg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
##############################################################################
16-
# Generate data
16+
# Generate data
1717
##############################################################################
1818

1919
#%% parameters
@@ -32,7 +32,7 @@
3232
M /= M.max()
3333

3434
##############################################################################
35-
# Solve EMD
35+
# Solve EMD
3636
##############################################################################
3737

3838
#%% EMD
@@ -92,6 +92,7 @@ def df(G):
9292

9393
#%% Example with Frobenius norm + entropic regularization with gcg
9494

95+
9596
def f(G):
9697
return 0.5 * np.sum(G**2)
9798

0 commit comments

Comments
 (0)