From bef9a0bedbbfc821e7d1e2b34ce805144af86fe1 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Fri, 12 Jul 2024 08:51:46 -0700 Subject: [PATCH] [scipy] Relax tolerances of some tests that fail under SciPy 1.12.0. PiperOrigin-RevId: 651788032 --- tests/lbfgs_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lbfgs_test.py b/tests/lbfgs_test.py index 12b49a40..c9fc9d93 100644 --- a/tests/lbfgs_test.py +++ b/tests/lbfgs_test.py @@ -419,7 +419,7 @@ def binary_logit_log_likelihood_jax(beta, y, x): onp.asarray(y), onp.asarray(x)) jaxopt_val = binary_logit_log_likelihood(jaxopt_res, y, x) - self.assertArraysAllClose(scipy_val, jaxopt_val) + self.assertArraysAllClose(scipy_val, jaxopt_val, rtol=3e-5) @parameterized.product(linesearch=['zoom', 'backtracking', 'hager-zhang'])