Skip to content

Commit 90bd408

Browse files
committed
pep8
1 parent c3115bc commit 90bd408

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

test/test_partial.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import scipy as sp
1010
import ot
1111

12+
1213
def test_partial_wasserstein_lagrange():
1314

1415
n_samples = 20 # nb samples (gaussian)
@@ -29,9 +30,7 @@ def test_partial_wasserstein_lagrange():
2930

3031
m = 0.5
3132

32-
w0, log0 = ot.partial.partial_wasserstein_lagrange(p, q, M, 1, log=True)
33-
34-
33+
w0, log0 = ot.partial.partial_wasserstein_lagrange(p, q, M, 1, log=True)
3534

3635

3736
def test_partial_wasserstein():

test/test_stochastic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_stochastic_asgd():
7171
M = ot.dist(x, x)
7272

7373
G, log = ot.stochastic.solve_semi_dual_entropic(u, u, M, reg, "asgd",
74-
numItermax=numItermax, log=True)
74+
numItermax=numItermax, log=True)
7575

7676
# check constratints
7777
np.testing.assert_allclose(
@@ -146,7 +146,7 @@ def test_stochastic_dual_sgd():
146146
M = ot.dist(x, x)
147147

148148
G, log = ot.stochastic.solve_dual_entropic(u, u, M, reg, batch_size,
149-
numItermax=numItermax, log=True)
149+
numItermax=numItermax, log=True)
150150

151151
# check constratints
152152
np.testing.assert_allclose(

test/test_unbalanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_unbalanced_convergence(method):
3535
verbose=True)
3636
loss = ot.unbalanced.sinkhorn_unbalanced2(a, b, M, epsilon, reg_m,
3737
method=method,
38-
verbose=True)
38+
verbose=True)
3939
# check fixed point equations
4040
# in log-domain
4141
fi = reg_m / (reg_m + epsilon)

0 commit comments

Comments
 (0)