Skip to content

Fix Beetl2021_A/B loading the 3-class final test labels with the 4-class map (#1241) - #1242

Merged
bruAristimunha merged 2 commits into
NeuroTechX:developfrom
bkowshik:fix/beetl2021-final-test-labels
Oct 13, 2026
Merged

bruAristimunha merged 2 commits into
NeuroTechX:developfrom
bkowshik:fix/beetl2021-final-test-labels

Conversation

@bkowshik

@bkowshik bkowshik commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Closes #1241.

final_MI_label.txt holds the BEETL final phase's three-class test labels. Class 2 is "other": right hand or feet for dataset A, feet or rest for dataset B. Both loaders read it with the four-class training map, so every "other" trial loaded as right_hand (A) or feet (B).

Changes

  • Test-run map. The final test run gets its own map. The merged class is a new event, right_hand_or_feet (A) or feet_or_rest (B), listed last in event_id. LeftRightImagery never selects it. Pass events= to pick the four training classes or the competition's three.
  • Leaderboard phase. It now serves its training run only. Before, it attached slices of the final-phase label file to the leaderboard test trials, whose labels were never released.
  • Last trial. interval now ends one sample before 4 s, as in Pan2023 and Pan2025. MNE includes tmax, so the last trial of every run was being dropped.
  • Units unchanged. A's files are already in volts. B's are in µV and are still scaled by 1e-6.

On the real data (final phase)

Subject Test run before Test run after Trials before Trials after
A, S1 rest 50, left_hand 50, right_hand 99 rest 50, left_hand 50, right_hand_or_feet 100 298 300
B, S4 left_hand 50, right_hand 50, feet 99 left_hand 50, right_hand 50, feet_or_rest 100 318 320

Tests

moabb/tests/test_beetl2021_labels.py adds synthetic tests that need no network. They cover the label maps, paradigm selection, the leaderboard phase and the trial count. test_datasets.py, test_dataset_fixes.py and test_metadata.py also pass.

bkowshik and others added 2 commits October 9, 2026 13:19
…ass map (NeuroTechX#1241)

final_MI_label.txt holds the BEETL competition's three-class test labels
(1000 ints, 200 per subject S1-S5, 50/50/100 each): class 2 is "other",
the two imagery tasks the final test does not score separately (right hand
or feet for dataset A, feet or rest for B). Both loaders annotated it with
the training runs' four-class map, so every "other" trial was served as
right_hand (A) or feet (B): on the real data, subject 1 of A loaded 124
right_hand trials, 99 of which were "other".

Give the final test run its own map and keep the merged class as a
separate event, right_hand_or_feet / feet_or_rest, listed last in
event_id. Serve only the training run in the leaderboard phase, whose test
labels were never released (the loader attached slices of the final-phase
file to those trials). Stop `interval` one sample before 4 s so MNE's
inclusive tmax no longer drops the last trial of every run (300 instead of
298 trials per dataset-A subject). Dataset A's files are already in volts;
B's microvolt scaling is unchanged.

Add synthetic regression tests for the maps, paradigm selection, the
leaderboard phase and the trial count, plus a whats_new entry.
…on mismatch

final_MI_label.txt holds one block per subject S1-S5. Stride was
test_data.shape[0], so a short subject file would silently misalign
later subjects. Derive n_block from len(test_labels)/5 and assert the
data matches.
@bruAristimunha
bruAristimunha merged commit a1c7067 into NeuroTechX:develop Oct 13, 2026
13 of 14 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.

Beetl2021_A and Beetl2021_B load the 3-class test labels with the 4-class event map

2 participants