#156156th of 433 in ML frameworks and librariesFor science, health and research, health and medicine
pyhealth
PyTorch toolkit for clinical ML on EHR, biosignal and medical imaging data
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts pyhealth on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.pyhealth is on your watch list. Its new releases and problems show there.
- Stars
- 1.7k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
1,563 on 6 May 20261,711 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
PyHealth is a Python library that takes EHR datasets such as MIMIC-III, MIMIC-IV, eICU and OMOP through a five-stage pipeline: dataset, task, model, trainer and metrics. It ships ready-made clinical tasks, 33+ models (RETAIN, SafeDrug, GAMENet, StageNet, EHRMamba) and medical code lookup and mapping across ICD, CCS, ATC, NDC and RxNorm. Evaluation uses patient-level splits, calibration metrics and bootstrap confidence intervals.
Who it is for: Researchers building and benchmarking clinical ML models on EHR data
Strengths
- Loaders for MIMIC-III/IV, eICU, OMOP, EHRShot, SleepEDF, SHHS and chest X-ray datasets
- Standalone medcode module maps between ICD, CCS, ATC, NDC and RxNorm
- Quickstart runs on synthetic MIMIC-III with no credentials
- Evaluation includes patient-level splits and bootstrap confidence intervals
Weaknesses
- 2.x requires Python 3.12 or 3.13; Python 3.9 support only in legacy 1.1.6
- Real MIMIC, eICU and similar data needs separate credentialed access
- README says PyHealth 2.0 documentation is still being updated
- Some tutorial videos cover PyHealth 1.16 rather than 2.x
What it needs
- GPU optional
- Needs PyTorch, Polars, Dask
- Models: RNN, Transformer, RETAIN, SafeDrug, GAMENet
What changed
“Dependency minimums were raised past known security issues; pip-audit reports none on a fresh install. (#1254)”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #154 | catboostGradient boosting library over decision trees with categorical feature support | 64 out of 100 |
| #155 | elixir-nx/nxTensors and numerical definitions for Elixir, with XLA and LibTorch backends | 64 out of 100 |
| #157 | nilearnPython library for statistical and machine-learning analysis of brain images | 64 out of 100 |
| #158 | dvcGit-based versioning for data, models and ML pipelines | 63 out of 100 |
| #159 | ivyTranspiler that converts ML code from PyTorch to TensorFlow, JAX or NumPy | 63 out of 100 |