braindecode.datasets.BaseConcatDataset

class braindecode.datasets.BaseConcatDataset(list_of_ds)

A base class for concatenated datasets. Holds either mne.Raw or mne.Epoch in self.datasets and has a pandas DataFrame with additional description.

Parameters
list_of_ds: list

list of BaseDataset of WindowsDataset to be concatenated.

Attributes
cummulative_sizes

Methods

split([some_property, split_ids])

Split the dataset based on some property listed in its description DataFrame or based on indices.

cumsum

__hash__(/)

Return hash(self).

split(some_property=None, split_ids=None)

Split the dataset based on some property listed in its description DataFrame or based on indices.

Parameters
some_property: str

some property which is listed in info DataFrame

split_ids: list(int)

list of indices to be combined in a subset

Returns
splits: dict{split_name: BaseConcatDataset}

mapping of split name based on property or index based on split_ids to subset of the data