Skip to content

Commit da21b98

Browse files
committed
pep8
1 parent 6d7fd7e commit da21b98

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/plot_OTDA_mapping_color_images.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
pl.title('Image 2')
3737
pl.tight_layout()
3838

39+
3940
#%% Image conversion and dataset generation
4041

4142
def im2mat(I):
@@ -78,7 +79,9 @@ def mat2im(X, shape):
7879
pl.title('Image 2')
7980
pl.tight_layout()
8081

82+
8183
#%% domain adaptation between images
84+
8285
def minmax(I):
8386
return np.clip(I, 0, 1)
8487

examples/plot_WDA.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
import numpy as np
1111
import matplotlib.pylab as pl
12-
import ot
13-
from ot.datasets import get_1D_gauss as gauss
12+
1413
from ot.dr import wda, fda
1514

1615

examples/plot_optim_OTreg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
#%% Example with Frobenius norm regularization
3838

39+
3940
def f(G):
4041
return 0.5 * np.sum(G**2)
4142

0 commit comments

Comments
 (0)