Repository navigation
Conversation
Test CoverageTotal: 88.87% (62610 / 70451 lines)
|
dhtrg
force-pushed
the
medmod-ihm-runners
branch
from
November 27, 2026 22:35
4ff7dd3 to
844e8c8
Compare
Part 1 of 4 of sunlabuiuc#1609. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
The task page now says the image transform belongs to the model's image loader; the task returns image_path only. A custom itemid_map adds a digest of its file to dataset_name, so each map gets its own PyHealth cache, with a test that builds two maps on one cache_dir. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
The dataset drops events outside its item map before caching, so a task whose item map has other ids would silently miss their events. set_task now raises a ValueError naming them, with a test. This is the second half of the AI review's item-map comment. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
dhtrg
force-pushed
the
medmod-ihm-runners
branch
2 times, most recently
from
November 30, 2026 23:10
93f4809 to
5559553
Compare
dhtrg
added a commit
to Rainie-Hu/PyHealth
that referenced
this pull request
Nov 30, 2026
Same code as sunlabuiuc#1637-sunlabuiuc#1640 after their reviews. sunlabuiuc#1638 is merged as 1aaeaea. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
Starting and stopping PyHealth's local Dask cluster took about 5 s per event-table build on 28 fake rows. The dataset tests now run the same Dask graph in the test process, and the custom item map test checks its cache key and row filter without a second build. The slowest step is now the module's one shared build (about 1.7 s); every test takes under 0.5 s. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
…ples Part 3 of 4 of sunlabuiuc#1609. Builds on parts 1 and 2. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
resize_cxr leaves a .tmp_*.jpg file behind if it is killed while saving. list_images now skips it, as existing_basenames already does. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
Part 4 of 4 of sunlabuiuc#1609. Builds on part 3. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
Without --tag, a run with a second seed found the first seed's report and stopped at once. The default tags of early_fusion_run, convirt_pretrain and convirt_probe now end in _seed<seed>. The notebook passes its own tags, so its runs are unchanged. Co-authored-by: rainiehu <57816421+Rainie-Hu@users.noreply.github.com>
dhtrg
force-pushed
the
medmod-ihm-runners
branch
from
November 30, 2026 23:53
5559553 to
06c83be
Compare
Rainie-Hu
marked this pull request as ready for review
December 1, 2026 00:37
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributors: Yuqing Hu (GT username yhu672, yhu672@gatech.edu) and Hanh Trang Do (GT username hdo61, hdo61@gatech.edu), Georgia Tech CSE 6250
Contribution Type: Full Pipeline, part 4 of 4 (#1609): the scripts and Colab notebook behind the real-data results
**Part 4 of 4 of #1609. Depends on #1637 and #1639. Until they merge, this diff also shows parts 1 and 3. After they merge, this branch will be rebased so it shows only part 4. The split: 1. dataset, task and processor (#1637); 2. models (#1638); 3. image tools, synthetic data, MedSigLIP, examples and results (#1639); 4. this PR.
Paper: Elsharief, S., et al. (2025). MedMod: Multimodal Benchmark for Medical Prediction Tasks with Electronic Health Records and Chest X-Ray Scans. CHIL 2025, PMLR 287. https://proceedings.mlr.press/v287/elsharief25a.html (code: https://github.com/nyuad-cai/MedMod)
What it adds:
examples/medmod_runners/: the scripts that produced the real-data results inexamples/mimic4_medmod_ihm_results.md. They train the same models with the same settings as the two example scripts. They also compute bootstrap confidence intervals, write a JSON report for every run and save checkpoints, so that a run continues after a disconnect. ItsREADME.mdexplains the data layout and how to prepare the data.examples/mimic4_medmod_ihm_colab_runs.ipynb: the Google Colab notebook that runs all of them, with its outputs.Links to other components: the runners use only our own components from #1637–#1639. They do not import or change existing PyHealth components.
Files to review (part 4 only):
examples/medmod_runners/-early_fusion_run.py,convirt_pretrain.py,convirt_probe.py(the real-data runs),samples.py,pretrain_samples.py,slim_events.py(data preparation),provenance.py,colab_bundle.py, and itsREADME.mdexamples/mimic4_medmod_ihm_colab_runs.ipynb- the Colab notebook, with its outputsexamples/mimic4_medmod_ihm_early_fusion.py,examples/mimic4_medmod_convirt.py,examples/mimic4_medmod_ihm_results.md- the "runners come in a follow-up PR" notes removedTesting: on this branch, all 142 tests pass offline, and every runner script's
--helpworks.python tools/check_pr_rules.pypasses.Data: the runners need credentialed PhysioNet access to MIMIC-IV v1.0 and MIMIC-CXR-JPG 2.0.0. They print only aggregates, such as counts, losses and scores. The notebook shows only aggregate scores and counts. No MIMIC data, identifiers or trained weights are in this PR.
🤖 Generated with Claude Code