Skip to content

Conversation

@Razin93937
Copy link
Contributor

Contributor: Sayeed Sajjad Razin ([email protected])
Contribution Type: Examples, Model

Description
This PR adds two runnable example scripts demonstrating split conformal prediction workflows on TUEV EEG Events using ContraWR:

  • Conventional conformal prediction via LABEL
  • Covariate-shift adaptive conformal prediction via CovariateLabel (KDE-based shift correction using embeddings)

Files to review

  • pyhealth\models\contrawr.py - Move x and y_true to self.device in ContraWR.forward() to prevent device mismatch errors.
  • examples\conformal_eeg\tuev_conventional_conformal.py - Conventional conformal prediction (LABEL) on TUEV EEG events with ContraWR.
  • examples\conformal_eeg\tuev_covariate_shift_conformal.py - Covariate-shift adaptive conformal prediction (CovariateLabel) using extracted embeddings.

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.

Approved and merged!

@jhnwu3 jhnwu3 merged commit f5d0ad5 into sunlabuiuc:master Jan 14, 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