Tutorials

The tutorial notebooks walk through common OneEHR workflows with runnable examples.

# Tutorial Covers
1 Quickstart End-to-end TJH mortality prediction
2 Custom Dataset Preparing dynamic, static, and label CSV files
3 Model Comparison Comparing configured models with confidence intervals and statistical tests
4 Fairness And Explainability Fairness metrics and feature importance outputs
5 Survival Analysis DeepSurv, DeepHit, concordance index, and survival curves

Run Locally

pip install oneehr jupyter
jupyter notebook tutorials/

When working from a source checkout, install the package in editable mode first:

uv venv .venv --python 3.12
source .venv/bin/activate
uv pip install -e ".[test]"
jupyter notebook tutorials/

Run In Colab

Upload a notebook to Google Colab and install OneEHR at the top:

!pip install oneehr

What You Will Practice

Tutorial 1:

Tutorial 2:

Tutorial 3:

Tutorial 4:

Tutorial 5: