fix: another bug in num_grad version of prior fit fixed.

This commit is contained in:
Fabian Joswig 2022-10-07 18:02:14 +01:00
parent ca4f83f5d1
commit 89125c91e2
No known key found for this signature in database

View file

@ -434,8 +434,6 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
return chisq
jac_jac = hessian(chisqfunc_compact)(np.concatenate((params, y_f, p_f)))
if kwargs.get('num_grad') is True:
jac_jac = jac_jac[0]
deriv = -hess_inv @ jac_jac[:n_parms, n_parms:]