This file maps the current benchmark path from raw MEDS data to the paper files. It only covers the current workflow.
Use the extraction wrapper under benchmarks/mimic-meds-extraction/ to populate:
benchmarks/mimic-meds-extraction/data/meds/data/raw/trainbenchmarks/mimic-meds-extraction/data/meds/data/raw/valbenchmarks/mimic-meds-extraction/data/meds/data/raw/test
Exp3 needs a fixed ICU-hospitalization cohort plus three derived comparison arms.
Live scripts:
pipeline/scripts/align_cohorts.pypipeline/scripts/split_meds_by_hadm_splits.pypipeline/scripts/build_exp3_meds_semantics_arms.py
Outputs are written under outputs/runs/exp3/.
Entry points:
slurm/03_stage0_tokenize_and_outcomes_meds.shslurm/04_exp3_stage0_tokenize_and_outcomes.shfms_ehrs/scripts/tokenize_w_config.pypipeline/scripts/extract_outcomes_meds.py
Main outputs:
<data_version>-tokenized/train/vocab.gzip<data_version>-tokenized/train/numeric_stats.json<data_version>-tokenized/<split>/tokens_timelines.parquet<data_version>_first_24h-tokenized/<split>/tokens_timelines.parquet<data_version>_first_24h-tokenized/<split>/tokens_timelines_outcomes.parquet
Entry points:
pipeline/scripts/extract_extended_outcomes.pyslurm/13_refresh_all_extended_outcomes.shslurm/13_refresh_exp3_extended_outcomes.sh
Main output:
<data_version>_first_24h-tokenized/<split>/tokens_timelines_extended_outcomes.parquet
Entry points:
- Exp1:
slurm/04_exp1_stage1_tune_packed.sh - Exp2:
slurm/07_exp2_stage1_train_representation.sh - Exp3:
slurm/08_exp3_stage1_train_representation.sh - Model repo scripts:
fms_ehrs/scripts/tune_model.py,fms_ehrs/scripts/train_representation.py
Main outputs:
- checkpoints under
outputs/runs/models/ representation_mechanics.ptfor wrapper models
5. Stage 2: hidden-state extraction
Entry points:
slurm/ref_qse/09_extract_reps.shslurm/09_run_stage2_gpu2_extract.shfms_ehrs/scripts/extract_hidden_states.py
Main output:
<data_version>_first_24h-tokenized/<split>/features-<model>.npy
Entry points:
slurm/ref_qse/10_xfer_rep_based_preds.shslurm/11_run_stage3_tier2q_lr.shfms_ehrs/scripts/transfer_rep_based_preds.py
Main output:
<data_version>_first_24h-tokenized/test/*-preds-*.pkl
Entry points:
pipeline/scripts/regenerate_aligned_family_stats.pyslurm/15_run_stats_cpu_jobfile.shslurm/15_submit_aligned_family_stats.sh- local jobfiles written under
slurm/generated/statistics/
Primary stats root:
outputs/runs/statistics/paper_stats_run_outputs/
Entry points:
paper/scripts/generate_mlhc_appendix_tables.pypaper/scripts/generate_mlhc_appendix_outcome_descriptives.pypaper/scripts/generate_mlhc_paper_figures.py- manuscript file
../MLHC2026/MLHC/paper.tex
Outputs:
../MLHC2026/MLHC/generated/../MLHC2026/MLHC/figures/../MLHC2026/MLHC/figures/sources/
- Build or verify MEDS extraction outputs.
- Build the Exp3 ICU cohort and control arms if needed.
- Run Exp1.
- Materialize winner files.
- Run Exp2.
- Run Exp3.
- Build extended outcomes if needed.
- Regenerate aligned family stats.
- Rebuild tables, figures, and manuscript assets.
pipeline/tests/unit/: unit and contract checks for pipeline scripts.pipeline/tests/dryrun/: one dry-run wrapper per pipeline script.
If this file drifts from the stage scripts or pipeline/run_experiments.py, update the docs and leave the code path unchanged.