diff options
author | Antoine Rolet <antoine.rolet@gmail.com> | 2017-09-12 19:58:46 +0900 |
---|---|---|
committer | Antoine Rolet <antoine.rolet@gmail.com> | 2017-09-12 19:58:46 +0900 |
commit | dd6f8260d01ce173ef3fe0c900112f0ed5288950 (patch) | |
tree | 22275dd64ff26577dc6c01a6e360afb62b2a3296 /test/test_ot.py | |
parent | 7c6169222979a7e82a83c118bc7117684258d0de (diff) |
Made the return of the matrix optional in emd2
Diffstat (limited to 'test/test_ot.py')
-rw-r--r-- | test/test_ot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_ot.py b/test/test_ot.py index e05e8aa..ea6d9dc 100644 --- a/test/test_ot.py +++ b/test/test_ot.py @@ -103,7 +103,7 @@ def test_emd2_multi(): # emd loss multipro proc with log ot.tic() - emdn = ot.emd2(a, b, M, log=True) + emdn = ot.emd2(a, b, M, log=True, return_matrix=True) ot.toc('multi proc : {} s') for i in range(len(emdn)): @@ -140,8 +140,8 @@ def test_warnings(): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") print('Computing {} EMD '.format(1)) - ot.emd(a, b, M, num_iter_max=1) - assert "num_iter_max" in str(w[-1].message) + ot.emd(a, b, M, numItermax=1) + assert "numItermax" in str(w[-1].message) assert len(w) == 1 a[0] = 100 print('Computing {} EMD '.format(2)) |