Skip to content

Commit 95a86a9

Browse files
author
William de Vazelhes
committed
Be more tolerant in test
1 parent 0b69e7e commit 95a86a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_mahalanobis_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_get_metric_equivalent_to_explicit_mahalanobis(estimator,
194194
a, b = (rng.randn(n_features), rng.randn(n_features))
195195
expected_dist = mahalanobis(a[None], b[None],
196196
VI=model.get_mahalanobis_matrix())
197-
assert_allclose(metric(a, b), expected_dist, rtol=1e-15)
197+
assert_allclose(metric(a, b), expected_dist, rtol=1e-13)
198198

199199

200200
@pytest.mark.parametrize('estimator, build_dataset', metric_learners,

0 commit comments

Comments
 (0)