Skip to content

DOC recover DANCE checkpoint evaluation and clarify validation score - #1406

Merged
bruAristimunha merged 3 commits into
braindecode:masterfrom
bruAristimunha:docs-dance-checkpoint-recovery
Oct 14, 2026
Merged

bruAristimunha merged 3 commits into
braindecode:masterfrom
bruAristimunha:docs-dance-checkpoint-recovery

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

Summary

Recover the checkpoint tutorial follow-up from #1109, which merged into dance rather than master.

  • Link and pin the published checkpoint to Hub revision b1605cb57c4d5a87cd5c4617de5d9a2eb49c1f45.
  • Evaluate whichever model actually loaded and label fallback results accurately.
  • Load into a copy before replacing the locally trained model: a failed strict load can otherwise partially update the fallback.
  • Correct the interpretation of the reported subject-3 F1-event 0.495: the published training script selects its best epoch using that subject, so this is validation/model-selection evidence, not an independent test estimate or paper reproduction.

Evidence

The pinned Hub train_checkpoint.py evaluates subject 3 each epoch and saves the state when ev_f1 > best_f1 (lines 212–230). This PR does not change model architecture or restore old DANCE implementation code.

Validation — draft until gallery completes

  • Scoped pre-commit passed.
  • The actual 119 MB pinned checkpoint downloaded successfully inside a Voyager Job.
  • Initial gallery environment lacked Sphinx/MOABB; validation now uses an isolated docs environment over existing scientific packages, without changing shared environments.
  • The shared BI2014a cache is revision 1.0.3 while the installed loader requires 1.0.4. The strict real-EEG gallery is being rerun against a separate matching-version cache; the shared cache remains untouched.
  • End-to-end tutorial execution, checkpoint loading, generated figures, and strict gallery success are not yet verified. Keeping this PR draft until those results are collected.

Adapt Jarod Levy’s fce7d6e (braindecode#1109), which landed on dance rather than master. Pin the published checkpoint, identify fallback results accurately, and explain that subject 3 was used for best-epoch selection.
@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.14%. Comparing base (c03aa49) to head (7b4352e).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1406   +/-   ##
=======================================
  Coverage   90.14%   90.14%           
=======================================
  Files         167      167           
  Lines       21817    21817           
=======================================
  Hits        19666    19666           
  Misses       2151     2151           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruAristimunha
bruAristimunha marked this pull request as ready for review October 14, 2026 18:54
Copilot AI balanced review requested due to automatic review settings October 14, 2026 18:54
@bruAristimunha
bruAristimunha merged commit d17c4ce into braindecode:master Oct 14, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants