LoadDataset#

class dpeeg.datasets.LoadDataset(folder: str | Path, subjects: list[int] | None = None, rename: str | None = None, verbose=None)[source]#

Read a dataset from a local folder.

This will read the dataset that has already been saved from the local folder. Ensure that the dataset is saved by dpeeg.savedataset.

Parameters:
  • folder (str, Path) – The path to the saved dataset.

  • subjects (list of int, optional) – List of subject number. If None, all subjects will be loaded.

  • rename (str, optional) – Rename the dataset.

get_data(progressbar: bool = True)[source]#

Returns the eegdata of all subjects.