pyhealth.datasets.ISRUCDataset#
The open ISRUC EEF database, refer to doc for more information.
- class pyhealth.datasets.ISRUCDataset(*args, **kwargs)[source]#
Bases:
BaseSignalDatasetBase EEG dataset for ISRUC Group I.
Dataset is available at https://sleeptight.isr.uc.pt/
The EEG signals are sampled at 200 Hz.
There are 100 subjects in the orignal dataset.
Each subject’s data is about a night’s sleep.
- Parameters:
dataset_name – name of the dataset. Default is ‘ISRUCDataset’.
root – root directory of the raw data. We expect root/raw to contain all extracted files (.txt, .rec, …) You can also download the data to a new directory by using download=True.
dev – whether to enable dev mode (only use a small subset of the data). Default is False.
refresh_cache – Whether to refresh the cache; if true, the dataset will be processed from scratch and the cache will be updated. Default is False.
download – Whether to download the data automatically. Default is False.
Examples
>>> from pyhealth.datasets import ISRUCDataset >>> dataset = ISRUCDataset( ... root="/srv/local/data/data/ISRUC-I", ... download=True, ... ) >>> dataset.stat() >>> dataset.info()