WorkupFlow is a PyTorch implementation of a clinical workup-guided flow matching model for mixed-type EHR missing-data imputation.
workupflow/: model, preprocessing, training, sampling, evaluation, and baseline utilities.configs/template.yaml: template dataset configuration.requirements.txt: Python dependencies.
Raw datasets, private dataset configs, checkpoints, run outputs, and manuscript files are intentionally excluded from this repository.
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtFor Linux/macOS, activate the environment with source .venv/bin/activate.
- Put your local CSV under
datasets/, for exampledatasets/my_dataset.csv. - Copy
configs/template.yamltoconfigs/my_dataset.yaml. - Edit column names, categorical cardinalities, panels, bounds, and optional label settings.
Files under datasets/ and private configs/*.yaml are ignored by Git by default.
python -m workupflow.scripts.train --dataset my_dataset --run-name my_run --epochs 10 --device autopython -m workupflow.scripts.evaluate --run-dir runs/my_run --split test --nfe 30 --scenarios mcar mar mnar block mixed --holdout-rates 0.1 0.3 0.5python -m workupflow.scripts.sample --run-dir runs/my_run --split test --n-imputations 5target_numcontains continuous targets.target_catcurrently expects binary categorical targets.