Repository navigation
Fix Beetl2021_A/B loading the 3-class final test labels with the 4-class map (#1241) - #1242
Merged
bruAristimunha merged 2 commits intoOct 13, 2026
Conversation
…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
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
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.
Closes #1241.
final_MI_label.txtholds 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 asright_hand(A) orfeet(B).Changes
right_hand_or_feet(A) orfeet_or_rest(B), listed last inevent_id.LeftRightImagerynever selects it. Passevents=to pick the four training classes or the competition's three.intervalnow ends one sample before 4 s, as in Pan2023 and Pan2025. MNE includestmax, so the last trial of every run was being dropped.1e-6.On the real data (final phase)
Tests
moabb/tests/test_beetl2021_labels.pyadds 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.pyandtest_metadata.pyalso pass.