Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/api/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ API Reference
models/pyhealth.models.Agent
models/pyhealth.models.GRASP
models/pyhealth.models.MedFuse
models/pyhealth.models.EHRCXREarlyFusion
models/pyhealth.models.ConVIRT
models/pyhealth.models.MAESTRO
models/pyhealth.models.DAFT
models/pyhealth.models.DiPro
Expand Down
21 changes: 21 additions & 0 deletions docs/api/models/pyhealth.models.ConVIRT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pyhealth.models.ConVIRT
=======================

ConVIRT contrastive pretraining of an EHR LSTM and a chest X-ray ResNet, and
a linear probe on the frozen encoders, as evaluated in MedMod.

Reference: Elsharief et al., "MedMod: Multimodal Benchmark for Medical
Prediction Tasks with Electronic Health Records and Chest X-Ray Scans."
CHIL 2025. https://proceedings.mlr.press/v287/elsharief25a.html

.. autoclass:: pyhealth.models.ConVIRT
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: pyhealth.models.ConVIRTLinearProbe
:members:
:undoc-members:
:show-inheritance:

.. autofunction:: pyhealth.models.convirt.info_nce_loss
14 changes: 14 additions & 0 deletions docs/api/models/pyhealth.models.EHRCXREarlyFusion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pyhealth.models.EHRCXREarlyFusion
=================================

Early fusion of an EHR LSTM and a chest X-ray ResNet, the Early Fusion
baseline of MedMod for in-hospital mortality.

Reference: Elsharief et al., "MedMod: Multimodal Benchmark for Medical
Prediction Tasks with Electronic Health Records and Chest X-Ray Scans."
CHIL 2025. https://proceedings.mlr.press/v287/elsharief25a.html

.. autoclass:: pyhealth.models.EHRCXREarlyFusion
:members:
:undoc-members:
:show-inheritance:
2 changes: 2 additions & 0 deletions pyhealth/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
from .daft import DAFT as DAFT, DAFTBlock as DAFTBlock, DAFTLayer as DAFTLayer
from .maestro import MAESTRO as MAESTRO
from .medfuse import MedFuse, MedFuseLayer
from .ehr_cxr_early_fusion import EHRCXREarlyFusion as EHRCXREarlyFusion
from .convirt import ConVIRT as ConVIRT, ConVIRTLinearProbe as ConVIRTLinearProbe
from .medlink import MedLink
from .micron import MICRON, MICRONLayer
from .mlp import MLP
Expand Down
Loading
Loading