Mne Decode
mne_decodeDecode two conditions over time with cross-validated classifiers, supporting sliding or generalizing analyses and multiple CV strategies.
Instructions
Time-resolved decoding (MVPA): train a classifier at each time point to discriminate two conditions, with cross-validation. cond_a/cond_b are event_id names (e.g. 'target','standard'). Supports stratified, stratified_group or leave_one_group_out CV. groups must align with ALL retained input epochs before condition filtering. Saves mean scores under name, per-fold scores under name_folds and split diagnostics under name_details. method='sliding' returns (time,), 'generalizing' returns (train_time, test_time). Optional tmin/tmax crop a copy in seconds. C>0, class_weight=null|'balanced' and max_iter configure fold-local logistic regression. Choose them before CV or use nested CV via mne_run_code for tuning. Reference lines are not significance. Requires scikit-learn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| C | No | ||
| cv | No | ||
| name | No | decoding | |
| plot | No | ||
| tmax | No | ||
| tmin | No | ||
| picks | No | ||
| cond_a | No | ||
| cond_b | No | ||
| groups | No | ||
| method | No | sliding | |
| scoring | No | roc_auc | |
| shuffle | No | ||
| max_iter | No | ||
| cv_strategy | No | stratified | |
| epochs_name | No | epochs | |
| class_weight | No | ||
| random_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |