CINC2020Dataset¶
- class torch_ecg.databases.datasets.CINC2020Dataset(config: CFG, training: bool = True, lazy: bool = True, **reader_kwargs: Any)[source]¶
-
Data generator for feeding data into pytorch models using the
CINC2020
database.- Parameters:
config (dict) –
configurations for the
Dataset
, ref. CINC2020TrainCfg. A simple example is as follows:>>> config = deepcopy(CINC2020TrainCfg) >>> config.db_dir = "some/path/to/db" >>> dataset = CINC2020Dataset(config, training=True, lazy=False)
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.