Preprocessing
Use this route for filtering, resampling, scaling, channel selection, montage
operations, cropping, preprocessing class composition, or preprocess execution
on raw, epoch, concat, or window datasets.
Workflow
- Record the input object type, channel order/types, sampling frequency, units,
preload state, and whether the operation mutates the object.
- Build a short ordered list of
Preprocessor objects. Use typed classes such
as Pick, Resample, Filter, Scale, Crop, and montage operations when
they make units and validation explicit; use a callable for custom array
operations only when apply_on_array is correct.
- Apply continuous/raw operations before windowing when they require temporal
context. Apply window-level normalization after window creation when it must
not mix recordings.
- Recalculate sample-based window parameters after resampling. Start with
n_jobs=1; increase parallelism only after a one-recording result is correct.
- Use
save_dir/overwrite only with a deliberate cache key containing the
preprocessing configuration.
Read API reference, workflow guidance,
and troubleshooting. Run the local synthetic
preprocessing smoke helper; it performs no data
fetch, Hub operation, or model training. EEGPrep is an optional integration,
not a baseline requirement.
1---2name: preprocessing3description: "Guides braindecode preprocessing pipelines for MNE and4 array-backed electrophysiology datasets, including typed operations, window5 ordering, and serialized execution."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/preprocessing9 disco-role: operating10license: BSD 3-Clause11---1213# Preprocessing1415Use this route for filtering, resampling, scaling, channel selection, montage16operations, cropping, preprocessing class composition, or `preprocess` execution17on raw, epoch, concat, or window datasets.1819## Workflow20211. Record the input object type, channel order/types, sampling frequency, units,22 preload state, and whether the operation mutates the object.232. Build a short ordered list of `Preprocessor` objects. Use typed classes such24 as `Pick`, `Resample`, `Filter`, `Scale`, `Crop`, and montage operations when25 they make units and validation explicit; use a callable for custom array26 operations only when `apply_on_array` is correct.273. Apply continuous/raw operations before windowing when they require temporal28 context. Apply window-level normalization after window creation when it must29 not mix recordings.304. Recalculate sample-based window parameters after resampling. Start with31 `n_jobs=1`; increase parallelism only after a one-recording result is correct.325. Use `save_dir`/`overwrite` only with a deliberate cache key containing the33 preprocessing configuration.3435Read [API reference](references/api-reference.md), [workflow guidance](references/workflows.md),36and [troubleshooting](references/troubleshooting.md). Run the local synthetic37[preprocessing smoke helper](scripts/smoke_preprocess.py); it performs no data38fetch, Hub operation, or model training. EEGPrep is an optional integration,39not a baseline requirement.