Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
287fc29
Create pyhealth.datasets.PTBXLDataset.rst
jtwells2 Apr 5, 2026
8fb5fc9
Update pyhealth.datasets.PTBXLDataset.rst
jtwells2 Apr 5, 2026
b38da52
Add PTBXLDataset to datasets.rst
jtwells2 Apr 5, 2026
e813ff8
Create ptbxl.py
jtwells2 Apr 9, 2026
8795145
Update ptbxl.py
jtwells2 Apr 10, 2026
3cc1da9
Update ptbxl.py
jtwells2 Apr 19, 2026
45ad493
Update __init__.py
jtwells2 Apr 19, 2026
fa0a4e0
Fixed indents
jtwells2 Apr 19, 2026
4f71fed
Update __init__.py
jtwells2 Apr 19, 2026
a7bee56
Missing line
jtwells2 Apr 19, 2026
4e2a34f
Add ptbxl_multilabel_classification to get the dataset tasks to work.
jtwells2 Apr 19, 2026
98a569c
Typos
jtwells2 Apr 19, 2026
56326f1
Fix test failure + test_ptbxl.py stub
jtwells2 Apr 19, 2026
f4af64a
Typo
jtwells2 Apr 19, 2026
b8e0668
Commit test file - only dataset tests currently
jtwells2 Apr 19, 2026
eba50c9
Add Resnet-18, SE-ResNet, and Lambda-ResNet models
sl4mmy Apr 11, 2026
461d6d4
Add tests for ResNet models for ECG diagnosis
sl4mmy Apr 18, 2026
ce7a4b4
Add docs for ResNet models for ECG diagnosis
sl4mmy Apr 18, 2026
096c338
Speed up tests
jtwells2 Apr 19, 2026
6edd098
Make the .mat file way smaller - should improve performance
jtwells2 Apr 19, 2026
c76f1cf
Add BiLSTMECG model for 12-lead ECG classification
anuragd-UIUC Apr 19, 2026
8e72652
docs: add Sphinx .rst entry for BiLSTMECG
anuragd-UIUC Apr 19, 2026
bcb9834
Update to the task to point to the right PTBXLDataset attributes
jtwells2 Apr 19, 2026
a1c29b5
Add TestPTBXLMultilabelClassification to tests
jtwells2 Apr 19, 2026
9a4a371
Fix minor issues
jtwells2 Apr 19, 2026
b810c30
Resolve scipy issue and resolve inadvertent merge conflict
jtwells2 Apr 19, 2026
8d95610
Adding new comments on PTBXL.
jtwells2 Apr 19, 2026
7bc71c8
Comments on test_ptbxl.py
jtwells2 Apr 19, 2026
061fa00
Added PTB-XL SE-ResNet-50
anuragd-UIUC Apr 19, 2026
d589973
Added ResNet18/LambdaResNet18 baselines, fix BiLSTMECG bugs, fix viz …
anuragd-UIUC Apr 20, 2026
1573aa3
Fixed a bug where we couldn't deal with missing rows in the dataset .csv
jtwells2 Apr 21, 2026
843e257
Fixing a bug with the attribute names
jtwells2 Apr 21, 2026
aa12c02
Typo
jtwells2 Apr 21, 2026
2684669
Add PTB-XL ablation study: 4 models x 4 configs, 2100 patients, 20 ep…
anuragd-UIUC Apr 21, 2026
3b93a97
Merge branch 'master' into feature/ptbxl-se-resnet-ablation
jtwells2 Apr 22, 2026
3ff83a8
feat: update hyperparams — LR=1e-3, EPOCHS=35, MAX_PATIENTS=7500
anuragd-UIUC Apr 22, 2026
dd96e07
chore: untrack generated artifacts (CSV + PNGs)
anuragd-UIUC Apr 22, 2026
03aa8d0
Merge pull request #5 from jtwells2/feature/ptbxl-se-resnet-ablation
jtwells2 Apr 22, 2026
d12b11b
Add tests for BiLSTM models for ECG diagnosis
sl4mmy Apr 22, 2026
f40d551
Match header style in test_ptbxl.py
sl4mmy Apr 22, 2026
279528b
Adding names to comments
jtwells2 Apr 23, 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/datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ Available Datasets
datasets/pyhealth.datasets.BMDHSDataset
datasets/pyhealth.datasets.COVID19CXRDataset
datasets/pyhealth.datasets.ChestXray14Dataset
datasets/pyhealth.datasets.PTBXLDataset
datasets/pyhealth.datasets.TUABDataset
datasets/pyhealth.datasets.TUEVDataset
datasets/pyhealth.datasets.ClinVarDataset
Expand Down
11 changes: 11 additions & 0 deletions docs/api/datasets/pyhealth.datasets.PTBXLDataset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pyhealth.datasets.PTBXLDataset
==============================

PTB-XL is a publically available electrocardiography dataset. Contains 21837 samples from 18885 patients, all approximately 10 seconds in duration. For more information see `here <https://pmc.ncbi.nlm.nih.gov/articles/PMC7248071/>`_.

Kaggle: https://www.kaggle.com/datasets/physionet/ptbxl-electrocardiography-database

.. autoclass:: pyhealth.datasets.PTBXLDataset
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/api/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ API Reference
models/pyhealth.models.EHRMamba
models/pyhealth.models.JambaEHR
models/pyhealth.models.ContraWR
models/pyhealth.models.LambdaResNet18ECG
models/pyhealth.models.ResNet18ECG
models/pyhealth.models.SEResNet50ECG
models/pyhealth.models.SparcNet
models/pyhealth.models.BiLSTMECG
models/pyhealth.models.StageNet
models/pyhealth.models.StageAttentionNet
models/pyhealth.models.AdaCare
Expand Down
9 changes: 9 additions & 0 deletions docs/api/models/pyhealth.models.BiLSTMECG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pyhealth.models.BiLSTMECG
===================================

Bidirectional LSTM for 12-lead ECG multi-label classification.

.. autoclass:: pyhealth.models.BiLSTMECG
:members:
:undoc-members:
:show-inheritance:
24 changes: 24 additions & 0 deletions docs/api/models/pyhealth.models.LambdaResNet18ECG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pyhealth.models.LambdaResNet18ECG
===================================

1-D Lambda-ResNet-18 for ECG classification: Nonaka N. & Seita J., In-depth Benchmarking of Deep Neural Network Architectures for ECG Diagnosis. PMLR 149, 2021; lambda layer from Bello I., LambdaNetworks: Modeling Long-Range Interactions Without Attention. ICLR 2021.

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

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

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

.. autoclass:: pyhealth.models.LambdaResNet18ECG
:members:
:undoc-members:
:show-inheritance:
29 changes: 29 additions & 0 deletions docs/api/models/pyhealth.models.ResNet18ECG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pyhealth.models.ResNet18ECG
===================================

1-D ResNet-18 for ECG classification: Nonaka N. & Seita J., In-depth Benchmarking of Deep Neural Network Architectures for ECG Diagnosis. PMLR 149, 2021.

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

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

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

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

.. autoclass:: pyhealth.models.ResNet18ECG
:members:
:undoc-members:
:show-inheritance:
19 changes: 19 additions & 0 deletions docs/api/models/pyhealth.models.SEResNet50ECG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pyhealth.models.SEResNet50ECG
===================================

1-D SE-ResNet-50 for ECG classification: Nonaka N. & Seita J., In-depth Benchmarking of Deep Neural Network Architectures for ECG Diagnosis. PMLR 149, 2021; SE block from Hu J. et al., Squeeze-and-Excitation Networks. CVPR 2018.

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

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

.. autoclass:: pyhealth.models.SEResNet50ECG
:members:
:undoc-members:
:show-inheritance:
Loading