Skip to content

Commit

Permalink
update net_004_alt test
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Dec 2, 2024
1 parent b201f4e commit ea1c75e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions tests/sciml/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ def _test_net(test):
):
return

ml_models = PetabScimlStandard.load_data(test / solutions["net_file"])
if test.stem.endswith("_alt"):
net_file = (
test.parent / test.stem.replace("_alt", "") / solutions["net_file"]
)
else:
net_file = test / solutions["net_file"]
ml_models = PetabScimlStandard.load_data(net_file)

nets = {}
outdir = Path(__file__).parent / "models" / test.stem
Expand Down Expand Up @@ -151,6 +157,7 @@ def _test_net(test):
"net_021",
"net_022", # Conv layers
"net_004",
"net_004_alt",
"net_005",
"net_006",
"net_007",
Expand Down Expand Up @@ -277,7 +284,6 @@ def _test_ude(test):
)

# gradient

sllh, _ = eqx.filter_grad(run_simulations, has_aux=True)(
jax_problem,
solver=diffrax.Tsit5(),
Expand Down

0 comments on commit ea1c75e

Please sign in to comment.