Skip to content

Commit

Permalink
Don't use scipy deprecated misc module
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jan 7, 2025
1 parent d3fb9a7 commit e008367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/logprob/test_transform_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e008367

Please sign in to comment.