mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: another bug in num_grad version of prior fit fixed.
This commit is contained in:
parent
ca4f83f5d1
commit
89125c91e2
1 changed files with 0 additions and 2 deletions
|
@ -434,8 +434,6 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
|
||||||
return chisq
|
return chisq
|
||||||
|
|
||||||
jac_jac = hessian(chisqfunc_compact)(np.concatenate((params, y_f, p_f)))
|
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:]
|
deriv = -hess_inv @ jac_jac[:n_parms, n_parms:]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue