Skip to content

Commit

Permalink
chore: specify the gradient option for pyhf loss
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Oct 30, 2024
1 parent 6e0f178 commit ce295fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfit_physics/pyhf/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def nll_func(params, *, data=data, pdf=pdf, errordef=errordef):
params = np.asarray(params)
return mle.twice_nll(params, data, pdf) * errordef

return zfit.loss.SimpleLoss(func=nll_func, params=params, errordef=errordef)
return zfit.loss.SimpleLoss(func=nll_func, params=params, errordef=errordef, gradient="num", jit=False)

0 comments on commit ce295fe

Please sign in to comment.