From e00836776763d78433b809608a0e02523f7de43f Mon Sep 17 00:00:00 2001 From: ricardoV94 Date: Tue, 7 Jan 2025 19:40:06 +0100 Subject: [PATCH] Don't use scipy deprecated misc module --- tests/logprob/test_transform_value.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/logprob/test_transform_value.py b/tests/logprob/test_transform_value.py index c2529ddb964..02326781dd7 100644 --- a/tests/logprob/test_transform_value.py +++ b/tests/logprob/test_transform_value.py @@ -279,7 +279,7 @@ def a_backward_fn_(x): exp_log_jac_val = jacobian_estimate(a_trans_value) else: - jacobian_val = np.atleast_2d(sp.misc.derivative(a_backward_fn, a_trans_value, dx=1e-6)) + jacobian_val = np.atleast_2d(sp.derivative(a_backward_fn, a_trans_value, dx=1e-6)) exp_log_jac_val = np.linalg.slogdet(jacobian_val)[-1] log_jac_val = log_jac_fn(a_trans_value)