Draft
Conversation
Implements the EEG-GCNN paper (Wagh & Varatharajah, ML4H @ NeurIPS 2020) as a PyHealth 2.0 contribution with dataset, task, tests, docs, and ablation study script. New files: - pyhealth/datasets/eeg_gcnn.py — EEGGCNNDataset (TUAB normal + MPI LEMON) - pyhealth/datasets/configs/eeg_gcnn.yaml — YAML config - pyhealth/tasks/eeg_gcnn_nd_detection.py — EEGGCNNDiseaseDetection task (PSD features, spatial/functional/combined adjacency, configurable bands) - tests/test_eeg_gcnn.py — 23 tests using synthetic data - examples/eeg_gcnn_nd_detection_gcn.py — 3 ablation experiments - RST docs for dataset and task Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
"coherence" must be passed as "coh" to spectral_connectivity_epochs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The ablation script can now run without real TUAB/LEMON data using `--demo`. Generates 40 synthetic patients with reproducible random PSD features and adjacency matrices, runs all 3 experiments through the full GCN training pipeline. Also fixes a bug where roc_auc_score failed on single-column y_prob output from binary classification. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename task schema keys (psd_features→node_features, adjacency→adj_matrix) to match the EEGGraphConvNet model interface. Add self-contained combined pipeline script that runs both GCN and GAT models with demo mode, requiring only torch + torch_geometric (no PyHealth install needed). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ation - Restore accidentally dropped EEG_abnormal.py and EEG_events.py task files that were causing an ImportError on test collection. - Add TestFunctionalAdjacency (10 tests) covering _build_functional_adjacency and combined adjacency mode; mne_connectivity is mocked via sys.modules so tests run in milliseconds with no real EEG dependency. - Extend evaluate() in the ablation script to report Precision, Recall, F1, and Balanced Accuracy in addition to AUC, using Youden's J statistic for threshold selection — matching the evaluation protocol in Table 2 of Wagh & Varatharajah (2020). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add EEG task definitions and expand GCNN evaluation metrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.