Tutorials

Step-by-step Jupyter notebooks covering the full OneEHR workflow.

# Tutorial Description
1 Quickstart End-to-end mortality prediction on the TJH COVID-19 dataset
2 Custom Dataset Bring your own data into OneEHR's three-table format + medical code mapping
3 Model Comparison Compare ML vs DL models with bootstrap CI and DeLong/McNemar statistical tests
4 Fairness & Explainability Bias detection across demographic groups + feature importance visualization
5 Survival Analysis DeepSurv, DeepHit, concordance index, and Kaplan-Meier curves

Running Tutorials

Local

pip install oneehr jupyter
jupyter notebook tutorials/

Google Colab

Upload any notebook to Google Colab and add this cell at the top:

!pip install oneehr

What You'll Learn

Tutorial 1: Quickstart

Tutorial 2: Custom Dataset

Tutorial 3: Model Comparison

Tutorial 4: Fairness & Explainability

Tutorial 5: Survival Analysis