KempSleepEDF2013¶
- class brainsets.datasets.KempSleepEDF2013(root=None, recording_ids=None, transform=None, uniquify_channel_ids=True, fold_number=0, fold_type='intrasession', dirname='kemp_sleep_edf_2013', **kwargs)[source]¶
Bases:
DatasetSleep-EDF Database Expanded containing 197 whole-night polysomnographic sleep recordings.
Preprocessing
To download and prepare this dataset, run
brainsets prepare kemp_sleep_edf_2013.- Parameters:
root (str, optional) – Root directory for the dataset. Defaults to
processed_dirfrom brainsets config.recording_ids (list[str], optional) – List of recording IDs to load.
transform (Callable, optional) – Data transformation to apply.
uniquify_channel_ids (bool, optional) – Whether to prefix channel IDs with session ID to ensure uniqueness. Defaults to True.
fold_number (int, optional) – The cross-validation fold index (0 to 2 for a 3-fold split). Defaults to 0.
fold_type (str, optional) – The splitting strategy. Must be one of: - “intrasession”: Epoch-level stratified split within each session. - “intersubject”: Subject-level split (subjects are assigned to train/valid/test). - “intersession”: Session-level split (subject-session pairs are assigned to train/valid/test). Defaults to “intrasession”.
dirname (str, optional) – Subdirectory for the dataset. Defaults to “kemp_sleep_edf_2013”.