summaryrefslogtreecommitdiff
path: root/test/test_bregman.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2021-04-19 15:03:57 +0200
committerGitHub <noreply@github.com>2021-04-19 15:03:57 +0200
commitcd3ce6140d7a2dbe2bcf05927a8dd8289f4ce9e2 (patch)
treee39a2b00709c46c8b00772d1218f53fe33e59e11 /test/test_bregman.py
parent2a3f2241951ea9cc044b4fba8a382b6ae9630513 (diff)
[MRG] Cleanup test warnings (#242)
* remove warnings in tests from docstrings * working tets for bregman implemneted methods * pep8
Diffstat (limited to 'test/test_bregman.py')
-rw-r--r--test/test_bregman.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_bregman.py b/test/test_bregman.py
index 331acd3..1ebd21f 100644
--- a/test/test_bregman.py
+++ b/test/test_bregman.py
@@ -321,8 +321,9 @@ def test_implemented_methods():
# make dists unbalanced
b = ot.utils.unif(n)
A = rng.rand(n, 2)
+ A /= A.sum(0, keepdims=True)
M = ot.dist(x, x)
- epsilon = 1.
+ epsilon = 1.0
for method in IMPLEMENTED_METHODS:
ot.bregman.sinkhorn(a, b, M, epsilon, method=method)