Repository navigation
Conversation
HBNResponseTimeRegression cuts one window per contrast change detection trial, 0.5 to 2.5 s after the target stimulus by default, and predicts the response time, as in challenge 1 of the EEG Foundation Challenge 2025. Trials are built with the rule of build_trial_table in EEGDash, which the challenge starter kit uses. Optional filters drop fast responses or wrong-hand responses.
The example trains EEGNet on one window per contrast change detection trial and scores it per test trial against the constant predictor, with the challenge nRMSE. Participants are split 60/20/20 by seed.
Ruff 0.17 (RUF007) flags zip(starts, starts[1:]); the pairs are the same.
Collaborator
|
Labeled |
This branch has not been deployed
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.
Contributor: Axel Coiffard-Donaty (@AxelNoun)
Contribution Type: New task
Description:
Adds
HBNResponseTimeRegressionfor the contrast change detection recordings ofHBNEEGDataset(#1767): one window per trial, 0.5 to 2.5 s after the target stimulus, labelled with the response time (s), as in challenge 1 of the EEG Foundation Challenge 2025. Trials followbuild_trial_tableof EEGDash, which the challenge starter kit uses. Optional filters drop fast or wrong-hand responses; both are off by default.Files to Review:
pyhealth/tasks/hbn_response_time.pytests/core/test_hbn_response_time.pyexamples/eeg/hbn/hbn_response_time_regression.pyTesting:
set_taskwith aPatientSplit; with the other HBN tests, 39 passed (Windows, Python 3.13).tools/check_pr_rules.py: passed.Baseline (R1 to R5, 60/20/20 participant split, 3 seeds, scored per trial): EEGNet nRMSE 1.086 ± 0.050, constant predictor 1.005 ± 0.001. The example checks the pipeline; no predictive claim.
Data note: about 1% of channel windows exceed 1000 uV in release 1. Windows are left raw, as in the kit.