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:
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
Added 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.