Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b4a3935
Add mixed precision and gradient accumulation to Trainer.
rianfyi Nov 3, 2026
e35de64
Fill attention masks with dtype min and use fused SDPA.
rianfyi Nov 3, 2026
2d4d5f6
Test the DataLoader worker options that get_dataloader forwards.
rianfyi Nov 3, 2026
4bd7a58
Allow skipping the Dask distributed cluster for event caching.
rianfyi Nov 3, 2026
5b68490
Return zero-length sequences for empty modalities.
rianfyi Nov 3, 2026
9ff3240
Clean note rows and pad per-sample longest in the tuple text processor.
rianfyi Nov 3, 2026
051591f
Give time embeddings a 10-year multi-scale span.
rianfyi Nov 3, 2026
7c002d1
Reuse unimodal encoders and pool patch image tokens in the unified mo…
rianfyi Nov 3, 2026
2f92a79
Flatten nested code events and expose the content embedding.
rianfyi Nov 3, 2026
764ebea
Standardize numerics before projection and bound the content scale.
rianfyi Nov 3, 2026
c6137bd
Keep frozen text encoders in eval when Trainer calls train().
rianfyi Nov 3, 2026
080e059
Avoid ambiguous -1 reshapes on batches with no note or image slots.
rianfyi Nov 3, 2026
4ad3d11
Cache frozen [CLS] embeddings keyed on real tokens, not padded rows.
rianfyi Nov 3, 2026
442b9e3
Encode a frozen-cache miss once per forward, even when the cache is f…
rianfyi Nov 3, 2026
8b66532
Cap the frozen text cache and expose hit/miss counters.
rianfyi Nov 3, 2026
96cb41f
Add unified-embedding mode to the Transformer.
rianfyi Nov 3, 2026
11dccb8
Add unified-embedding mode to EHRMamba.
rianfyi Nov 3, 2026
0ae79f5
Add unified-embedding mode to JambaEHR.
rianfyi Nov 3, 2026
472e7e3
Add unified-embedding mode to the RNN.
rianfyi Nov 3, 2026
5acaba4
Collate ragged processor tuples positionally so text batches stack.
rianfyi Nov 3, 2026
88090ec
Emit batch pad masks from the legacy collators.
rianfyi Nov 3, 2026
f38fe3d
Skip collate padding in the unified sequence.
rianfyi Nov 3, 2026
adbae11
Thread collate pad_mask through the unified MLP path.
rianfyi Nov 3, 2026
584b597
Add BottleneckTransformer model with unified-embedding mode.
rianfyi Nov 3, 2026
abbfdbf
Let StageNetTensorProcessor skip forward fill for observation masks.
rianfyi Nov 3, 2026
e577533
Scan past empty samples when fitting StageNet processors.
rianfyi Nov 3, 2026
b2fd2f0
Add NotesLabsMIMIC4 and LabsMIMIC4 multimodal tasks.
rianfyi Nov 3, 2026
5f53fa7
Share one observation window across modalities, default 0 = off.
rianfyi Nov 3, 2026
ffe267d
Add unified-embedding e2e runner with cache and timing flags.
rianfyi Nov 3, 2026
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
1 change: 1 addition & 0 deletions docs/api/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ API Reference
models/pyhealth.models.Transformer
models/pyhealth.models.BEHRT
models/pyhealth.models.BiteNet
models/pyhealth.models.BottleneckTransformer
models/pyhealth.models.TransformersModel
models/pyhealth.models.LLMEHREncoder
models/pyhealth.models.HFEHRFoundationModel
Expand Down
15 changes: 15 additions & 0 deletions docs/api/models/pyhealth.models.BottleneckTransformer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pyhealth.models.BottleneckTransformer
======================================


The shared bottleneck encoder and the complete Bottleneck Transformer model.

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

.. autoclass:: pyhealth.models.BottleneckTransformer
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/api/tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,4 @@ Available Tasks
YAIB Tasks (eICU) <tasks/pyhealth.tasks.yaib_eicu>
Value Set Completion (VSAC) <tasks/pyhealth.tasks.ValueSetCompletion>
Time-to-event survival (GBSG and SUPPORT) <tasks/pyhealth.tasks.survival_time_to_event>
Multimodal Mortality Prediction (MIMIC-IV) <tasks/pyhealth.tasks.multimodal_mimic4>
19 changes: 19 additions & 0 deletions docs/api/tasks/pyhealth.tasks.multimodal_mimic4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pyhealth.tasks.multimodal_mimic4
================================

Mortality prediction from MIMIC-IV labs and admission-context notes.

.. autoclass:: pyhealth.tasks.multimodal_mimic4.BaseMultimodalMIMIC4Task
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: pyhealth.tasks.multimodal_mimic4.NotesLabsMIMIC4
:members:
:undoc-members:
:show-inheritance:

.. autoclass:: pyhealth.tasks.multimodal_mimic4.LabsMIMIC4
:members:
:undoc-members:
:show-inheritance:
Loading
Loading