Skip to content

Commit

Permalink
fix hessian
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Oct 25, 2024
1 parent 480b75a commit 8b9c10a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/sdist/amici/jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,15 @@ def s2run(
)(ts, ts_dyn, p, k, k_preeq, my, pscale, dynamic=dynamic)

s2llh = jax.hessian(self._run, 2, True)(

Check warning on line 260 in python/sdist/amici/jax.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/jax.py#L260

Added line #L260 was not covered by tests
ts, ts_dyn, p, k, k_preeq, my, pscale, dynamic=dynamic
ts,
ts_dyn,
p,
k,
k_preeq,
my,
pscale,
checkpointed=False,
dynamic=dynamic,
)

return llh, sllh, s2llh, (x, obs, stats)

Check warning on line 272 in python/sdist/amici/jax.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/jax.py#L272

Added line #L272 was not covered by tests
Expand Down

0 comments on commit 8b9c10a

Please sign in to comment.