mindspore.dataset.dataloader.Dataset
- class mindspore.dataset.dataloader.Dataset[源代码]
Base class for map style datasets.
Map style datasets are datasets that represent a mapping from keys to data samples. Subclasses must overwrite __getitem__ method, defining how to retrieve the samples according to the key. Subclasses could optionally overwrite __len__ method, returning the size of the dataset.