Skip to content

[Conformal EEG] TUEV/TUAB Compatibility#894

Merged
jhnwu3 merged 5 commits intosunlabuiuc:masterfrom
lehendo:arjunfixes1
Mar 15, 2026
Merged

[Conformal EEG] TUEV/TUAB Compatibility#894
jhnwu3 merged 5 commits intosunlabuiuc:masterfrom
lehendo:arjunfixes1

Conversation

@lehendo
Copy link
Contributor

@lehendo lehendo commented Mar 15, 2026

Arjun Chatterjee

Implemented the fixes John and I discussed to make PyHealth compatible with TUEV and TUAB. This should work with ContraWR and TFM-Tokenizer now. I also added and updated the example scripts to run the conformal prediction methods on this updated repository.

Copy link
Collaborator

@jhnwu3 jhnwu3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last quick change you'll need to make is removing the stft_torch here in the model

https://github.com/sunlabuiuc/PyHealth/blob/master/pyhealth/models/tfm_tokenizer.py

now that the task handles it.

@@ -139,40 +139,60 @@ def readEDF(fileName: str,
def __call__(self, patient: Any) -> List[Dict[str, Any]]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create a boolean for stft=True here? So it's not always computed in case people just want the raw signal too.

@lehendo lehendo requested a review from jhnwu3 March 15, 2026 19:59
Copy link
Collaborator

@jhnwu3 jhnwu3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@jhnwu3 jhnwu3 merged commit 2d12b1f into sunlabuiuc:master Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants