From 5b6eb56f2d4bfdaeaa45970c386c42c21d7d1caf Mon Sep 17 00:00:00 2001 From: Romain Tavenard Date: Tue, 2 Jul 2019 09:53:15 +0200 Subject: Fix tolerance in doctest --- ot/bregman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot') diff --git a/ot/bregman.py b/ot/bregman.py index 50f8389..13dfa3b 100644 --- a/ot/bregman.py +++ b/ot/bregman.py @@ -1558,8 +1558,8 @@ def empirical_sinkhorn_divergence(X_s, X_t, reg, a=None, b=None, metric='sqeucli >>> reg = 0.1 >>> X_s = np.reshape(np.arange(n_s), (n_s, 1)) >>> X_t = np.reshape(np.arange(0, n_t), (n_t, 1)) - >>> empirical_sinkhorn_divergence(X_s, X_t, reg) - array([1.49988718]) + >>> empirical_sinkhorn_divergence(X_s, X_t, reg) # doctest: +ELLIPSIS + array([1.499...]) References -- cgit v1.2.3