moabb.paradigms.BaseFixedIntervalWindowsProcessing#
- class moabb.paradigms.BaseFixedIntervalWindowsProcessing(filters=None, baseline=None, channels=None, resample=None, length: float = 5.0, stride: float = 10.0, start_offset=0.0, stop_offset=None, marker=-1)[source]#
Base class for fixed interval windows processing.
Paradigm for creating epochs at fixed interval, ignoring the stim channel and events of the dataset.
- Parameters
filters (list of list (default [[7, 45]])) – bank of bandpass filter to apply.
baseline (None | tuple of length 2) – The time interval to consider as “baseline” when applying baseline correction. If None, do not apply baseline correction. If a tuple (a, b), the interval is between a and b (in seconds), including the endpoints. Correction is applied by computing the mean of the baseline period and subtracting it from the data (see mne.Epochs)
channels (list of str | None (default None)) – list of channel to select. If None, use all EEG channels available in the dataset.
resample (float | None (default None)) – If not None, resample the eeg data with the sampling rate provided.
length (float (default 5.0)) – Length of the epochs in seconds.
stride (float (default 10.0)) – Stride between epochs in seconds.
start_offset (float (default 0.0)) – Start from the beginning of the raw recordings in seconds.
stop_offset (float | None (default None)) – Stop offset from beginning of raw recordings in seconds. If None, set to be the end of the recording.
marker (int (default -1)) – Marker to use for the events created.
Notes
New in version 1.0.0.
- property datasets#
Property that define the list of compatible datasets.
- is_valid(dataset)[source]#
Verify the dataset is compatible with the paradigm.
This method is called to verify dataset is compatible with the paradigm.
This method should raise an error if the dataset is not compatible with the paradigm. This is for example the case if the dataset is an ERP dataset for motor imagery paradigm, or if the dataset does not contain any of the required events.
- Parameters
dataset (dataset instance) – The dataset to verify.
Examples using moabb.paradigms.BaseFixedIntervalWindowsProcessing
#
Fixed interval windows processing