braindecode.datasets.create_from_mne_epochs#

braindecode.datasets.create_from_mne_epochs(list_of_epochs: list[BaseEpochs], window_size_samples: int, window_stride_samples: int, drop_last_window: bool) BaseConcatDataset[source]#

Create WindowsDatasets from mne.Epochs

Parameters:
  • list_of_epochs (array-like) – list of mne.Epochs

  • window_size_samples (int) – window size

  • window_stride_samples (int) – stride between windows

  • drop_last_window (bool) – whether or not have a last overlapping window, when windows do not equally divide the continuous signal

Returns:

windows_datasets – X and y transformed to a dataset format that is compatible with skorch and braindecode

Return type:

BaseConcatDataset

Examples using braindecode.datasets.create_from_mne_epochs#

MNE Dataset Example

MNE Dataset Example