@@ -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