Skip to content

Commit 83ecc6d

Browse files
committed
bregman coverage
1 parent 709d8cb commit 83ecc6d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/test_bregman.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,20 @@ def test_sinkhorn_empty():
3333

3434
M = ot.dist(x, x)
3535

36-
G = ot.sinkhorn([], [], M, 1, stopThr=1e-10)
36+
G, log = ot.sinkhorn([], [], M, 1, stopThr=1e-10, verbose=True, log=True)
3737
# check constratints
3838
assert np.allclose(u, G.sum(1), atol=1e-05) # cf convergence sinkhorn
3939
assert np.allclose(u, G.sum(0), atol=1e-05) # cf convergence sinkhorn
4040

41-
G = ot.sinkhorn([], [], M, 1, stopThr=1e-10, method='sinkhorn_stabilized')
41+
G, log = ot.sinkhorn([], [], M, 1, stopThr=1e-10,
42+
method='sinkhorn_stabilized', verbose=True, log=True)
4243
# check constratints
4344
assert np.allclose(u, G.sum(1), atol=1e-05) # cf convergence sinkhorn
4445
assert np.allclose(u, G.sum(0), atol=1e-05) # cf convergence sinkhorn
4546

46-
G = ot.sinkhorn(
47-
[], [], M, 1, stopThr=1e-10, method='sinkhorn_epsilon_scaling')
47+
G, log = ot.sinkhorn(
48+
[], [], M, 1, stopThr=1e-10, method='sinkhorn_epsilon_scaling',
49+
verbose=True, log=True)
4850
# check constratints
4951
assert np.allclose(u, G.sum(1), atol=1e-05) # cf convergence sinkhorn
5052
assert np.allclose(u, G.sum(0), atol=1e-05) # cf convergence sinkhorn

0 commit comments

Comments
 (0)