LUDBDataset#
- class torch_ecg.databases.datasets.LUDBDataset(config: CFG, training: bool = True, lazy: bool = False, **reader_kwargs: Any)[source]#
-
Data generator for feeding data into pytorch models using the
LUDB
database.- Parameters:
config (dict) – Configurations for the dataset, ref. LUDBTrainCfg.
training (bool, default True) – If True, the training set will be loaded, otherwise the test (val) set will be loaded.
lazy (bool, default True) – If True, the data will not be loaded immediately, instead, it will be loaded on demand.
**reader_kwargs (dict, optional) – Keyword arguments for the database reader class.