diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2018-09-28 16:04:19 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2018-09-28 16:04:19 +0200 |
commit | 642fd5b7707c4bdce72b883c666ffdae89fde76a (patch) | |
tree | f41f9896df48802a1b0457904fadec53c158c9c6 /test/test_bregman.py | |
parent | eaa05d1411cc8b365479fb239acf4e774c68037c (diff) |
speedup tests
Diffstat (limited to 'test/test_bregman.py')
-rw-r--r-- | test/test_bregman.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bregman.py b/test/test_bregman.py index b0c3358..14edaf5 100644 --- a/test/test_bregman.py +++ b/test/test_bregman.py @@ -118,12 +118,12 @@ def test_wasserstein_bary_2d(): a2 += a2.min() a2 = a2 / np.sum(a2) # creating matrix A containing all distributions - A = np.zeros((2, 100, 100)) + A = np.zeros((2, size, size)) A[0, :, :] = a1 A[1, :, :] = a2 # wasserstein - reg = 1e-3 + reg = 1e-2 bary_wass = ot.bregman.convolutional_barycenter2d(A, reg) np.testing.assert_allclose(1, np.sum(bary_wass)) |