Skip to content

Conversation

@Razin93937
Copy link
Contributor

Contributor: Sayeed Sajjad Razin (razin93937@gmail.com)
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.

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.

1 participant