Views
No views yet
braindecode.models.DANCE
model, used by the tutorial "From window labels to events: asynchronous EEG
decoding with DANCE".(start, end, class) events directly from long,
unaligned EEG windows, without being told where an event starts. This
checkpoint was trained on the Brain Invaders BI2014a P300 dataset (flash
detection: class 1 = non-target, class 2 = target, class 0 = background).| Metric | Value |
|---|---|
| F1-event (IoU > 0.5 + class match) | 0.495 |
| F1-sample (per-token macro) | 0.372 |
1import torch
2from huggingface_hub import hf_hub_download
3from braindecode.models import DANCE
4
5model = DANCE(
6 n_outputs=3,
7 n_chans=len(chs_info), # 16 for BI2014a
8 chs_info=chs_info,
9 n_times=4096, # 32 s @ 128 Hz
10 sfreq=128.0,
11 input_window_seconds=32.0,
12)
13model.load_state_dict(
14 torch.load(hf_hub_download("braindecode/plot_dance_event_detection", "model.pt"))
15)[-16, 16].num_latents = 256.5e-4, batch size 16, 120 epochs,
best-by-held-out-F1-event checkpoint.braindecode.training.DanceLoss (matched-only IoU normalization).train_checkpoint.py in this repository.