Skip to content

Commit f8929b9

Browse files
FFroehlichdilpathdweindlyannikschaelte
authored
Jax example notebook (#1996)
* add sllh to `simulate_petab` * use ExpData for plist if available * use plist if set; breakpoint at error; preliminary test * add sensi test to preexisting benchmark model test * remove outdated test and test cases * add FD check for petab problems; add petab problem test case for SLLH; clean up * typo, RTOL * fix paths * docs * Apply suggestions from code review Co-authored-by: Yannik Schälte <[email protected]> Co-authored-by: Daniel Weindl <[email protected]> * reviews: docstring;error handling;optional sllh aggregation * Apply suggestions from code review Co-authored-by: Fabian Fröhlich <[email protected]> * review: clean up * ignore parameters missing due to estimate=0 * add test for petab benchmark models * use fiddy * Create Differential Programming with JAX.ipynb * pass model_name to _create_model_output_dir_name fixes #1993 * update notebook * move notebook and add to doc * prettify notebook * develop merge * fix after merge * merge conflicts * restore changes * make scaled gradients optional, default to linear * adress reviewer comments * test scaled and unscaled * fix notebook * fix notebook * revert merge changes * fix binder --------- Co-authored-by: dilpath <[email protected]> Co-authored-by: Daniel Weindl <[email protected]> Co-authored-by: Dilan Pathirana <[email protected]> Co-authored-by: Yannik Schälte <[email protected]> Co-authored-by: Daniel Weindl <[email protected]>
1 parent d2fb35e commit f8929b9

File tree

6 files changed

+1969
-3
lines changed

6 files changed

+1969
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ python/examples/example_presimulation/model_presimulation/*
154154
python/examples/example_presimulation/model_presimulation_re/*
155155
python/examples/example_constant_species/model_constant_species_reduced/*
156156
python/examples/example_constant_species/model_constant_species/*
157+
python/examples/example_jax/amici_models/*
157158
python/tests/sbml_test_models/*
158159
python/tests/piecewise_test/*
159160

@@ -200,4 +201,4 @@ Benchmark-Models-PEtab/
200201
CS_Signalling_ERBB_RAS_AKT/
201202
cache_fiddy/*
202203
debug/*
203-
tests/benchmark-models/cache_fiddy/*
204+
tests/benchmark-models/cache_fiddy/*

binder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN adduser --disabled-password \
3030
${NB_USER}
3131
USER ${NB_USER}
3232
RUN python3 -m pip install --upgrade build wheel setuptools pip && \
33-
python3 -m pip install --no-cache-dir notebook jupyterlab jupyterhub
33+
python3 -m pip install --no-cache-dir notebook jupyterlab jupyterhub jax[cpu]
3434
# END BINDER
3535

3636
# BEGIN BINDER

binder/overview.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
"\n",
3030
"* [Simulation errors](../python/examples/example_errors.ipynb)\n",
3131
"\n",
32-
" Demonstrates common simulation failures and gives some hints for interpreting, debugging, and fixing them.\n"
32+
" Demonstrates common simulation failures and gives some hints for interpreting, debugging, and fixing them.\n",
33+
"\n",
34+
"* [Interfacing JAX](../python/examples/example_jax/ExampleJax.ipynb)\n",
35+
"\n",
36+
" Provides guidance on how to combine AMICI with differential programming frameworks such as JAX.\n"
3337
]
3438
}
3539
],

0 commit comments

Comments
 (0)