Skip to content

Add standalone CognitiveTask paradigm for cued cognitive tasks - #1246

Merged
bruAristimunha merged 3 commits into
NeuroTechX:developfrom
bruAristimunha:feat/cognitive-task-paradigm
Oct 13, 2026
Merged

bruAristimunha merged 3 commits into
NeuroTechX:developfrom
bruAristimunha:feat/cognitive-task-paradigm

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

Standalone N-class cued cognitive task paradigm subclassing BaseParadigm directly (not MotorImagery): handwriting/stroke imagery, mental arithmetic, rotation, word generation, music imagery. Follows the Cued Cognitive Tasks branch of #1056 (jarod1212), distinct from motor imagery (ERD/ERS) and evoked ERP/P300.

  • Valid on both paradigm="cognitive" and the existing paradigm="imagery" tag, so current loaders (e.g. Wang2026Handwriting in Add Wang2026Handwriting: Chinese handwriting imagery dataset (CCS-HI / SV-HI) #1244) work today while future loaders can adopt the "cognitive" tag
  • 8-32 Hz defaults match MotorImagery; roc_auc for 2 classes else accuracy
  • dataset_search allowlist + ExperimentMetadata schema doc extended with "cognitive"
  • API docs section, whats_new entry, TestCognitiveTask (5 tests, green) + full TestMotorImagery green (32 passed total)
  • Includes FakeCognitiveParadigm for tests

N-class cued cognitive task paradigm subclassing BaseParadigm
directly (not MotorImagery): handwriting/stroke imagery, mental
arithmetic, rotation, word generation, music imagery. Follows the
Cued Cognitive Tasks branch of NeuroTechX#1056. Valid on both
paradigm=cognitive and the existing paradigm=imagery tag so current
loaders (e.g. Wang2026Handwriting) work today. 8-32 Hz defaults match
MotorImagery; roc_auc for 2 classes else accuracy. Includes
FakeCognitiveParadigm, dataset_search allowlist, schema doc,
API docs, whats_new, and TestCognitiveTask (5 tests).
P1: 24-dash api.rst underline; wire cognitive into neural-signature
handlers/factory, bubble-plot colormap (tab10-6), metadata allowlists.
Remove self.n_classes mutation in used_events (stateless).

P2: rename overlap->n_overlap; empty-events ValueError; document
transitional double-scan; FakeCognitive uses subtraction/rest.

Flip Shin2017B: BaseShin2017 paradigm=cognitive when MA-only,
METADATA + detected_paradigm=cognitive, docstring, move row to new
summary_cognitive.csv, base.py table, api.rst + dataset_summary.rst
sections, whats_new. MotorImagery no longer valid on Shin2017B;
CognitiveTask valid; dataset_search(cognitive)=[Shin2017B].
@bruAristimunha
bruAristimunha force-pushed the feat/cognitive-task-paradigm branch from 6056674 to a00937f Compare October 13, 2026 15:58
10-letter executed writing task joins Shin2017B under paradigm=cognitive,
mixed use allowed per maintainer go. Loader + METADATA + detected_paradigm,
docstring, move summary row imagery->cognitive, api.rst listing, whats_new.
CognitiveTask valid (10/10), MotorImagery no longer valid; search returns
both cognitive datasets.
@bruAristimunha
bruAristimunha merged commit 4a9e72b into NeuroTechX:develop Oct 13, 2026
9 of 11 checks passed
bruAristimunha added a commit to bruAristimunha/moabb that referenced this pull request Oct 14, 2026
PR link checks went red on dataia.eu 500 and GitHub 503 (NeuroTechX#1242, NeuroTechX#1246,
NeuroTechX#1247), not on dead links. Accept 500/502/503/504; 404/410/DNS still
fail. Closes the stale weekly reports NeuroTechX#1031 and NeuroTechX#1131.
bruAristimunha added a commit that referenced this pull request Oct 14, 2026
PR link checks went red on dataia.eu 500 and GitHub 503 (#1242, #1246,
#1247), not on dead links. Accept 500/502/503/504; 404/410/DNS still
fail. Closes the stale weekly reports #1031 and #1131.
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