Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions tests/benchmark_models/test_petab_benchmark_jax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
from functools import partial

import diffrax
import equinox as eqx
import jax
import jax.numpy as jnp
Expand All @@ -23,8 +24,6 @@
settings,
)

import diffrax

jax.config.update("jax_enable_x64", True)


Expand All @@ -38,7 +37,12 @@ def test_jax_llh(benchmark_problem):
benchmark_problem
)

to_skip = ["Smith_BMCSystBiol2013", "Oliveira_NatCommun2021", "SalazarCavazos_MBoC2020"]
to_skip = [
"Liu_IFACPapersOnLine2025",
"Oliveira_NatCommun2021",
"SalazarCavazos_MBoC2020",
"Smith_BMCSystBiol2013",
]
if problem_id in to_skip:
pytest.skip(
f"Skipping {problem_id} due to non-supported events in JAX."
Expand Down Expand Up @@ -118,12 +122,12 @@ def test_jax_llh(benchmark_problem):
(llh_jax, _), sllh_jax = eqx.filter_value_and_grad(
run_simulations, has_aux=True
)(
jax_problem,
jax_problem,
max_steps=max_steps,
controller=diffrax.PIDController(
atol=atol,
rtol=rtol,
)
),
)
else:
llh_jax, _ = beartype(run_simulations)(jax_problem)
Expand Down
Loading