Skip to content

Commit b238b65

Browse files
author
William de Vazelhes
committed
Be more tolerant for checking NCA
1 parent d5c9dd0 commit b238b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/metric_learn_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def grad(M):
530530
epsilon = np.sqrt(np.finfo(float).eps)
531531
rel_diff = (check_grad(fun, grad, M.ravel()) /
532532
np.linalg.norm(approx_fprime(M.ravel(), fun, epsilon)))
533-
np.testing.assert_almost_equal(rel_diff, 0., decimal=10)
533+
np.testing.assert_almost_equal(rel_diff, 0., decimal=6)
534534

535535
def test_simple_example(self):
536536
"""Test on a simple example.

0 commit comments

Comments
 (0)