Skip to content

edwenger/emod-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMOD Demo

Open in GitHub Codespaces

This emod-demo repository is intended to demonstrate how the emodlib python package can be used for realistic example scenarios.

The emodlib package exports EMOD's malaria within-host model logic from C++ to Python via pybind11.

Click the badge above to create a codespace for this repository and try running some of the notebooks in the examples/ directory.

Or fork this template repository to start with the same requirements.txt dependencies and .devcontainer.json environment settings as you develop your own analysis projects.

Examples

examples/compare_timesteps.ipynb: Explore time constants of different within-host processes (parasite density, antibodies, cytokines) and implication for fidelity of model components at different time-step sizes

examples/infectious_reservoir.ipynb: Investigate parasite densities + infectiousness under repeat exposure with different assumptions of transmission intensity, seasonality, and symptomatic treatment. Characterize the composition of the human infectious reservoir as a function of age-dependent immunity.

examples/interactive_widgets.ipynb: Construct an interactive dashboard with ipywidgets to visualize infection state with controls to step forward in time, to add new infections, and to deliver treatment.

examples/calibrate_prevalence.ipynb: Use the optuna hyperparameter optimization library to calibrate a seasonal exposure simulation to dummy age-dependent prevalence data.

examples/optimize.py: Extends the model calibration example to include additional optuna-dashboard or mlflow hooks for experiment tracking, artifact storage, and visualization.

examples/simple_transmission.ipynb: Pass infections between individual hosts using numpy.array as a simple + flexible infectiousness container and proxy for mosquito dynamics.

About

A collection of Jupyter notebooks as examples of using EMOD libraries from Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •