The Dataloader wraps the dataset and combines them with a sampler (see below) to combine single samples to whole batches.

ToDo: add flow chart diagramm


class BaseDataLoader(dataset: delira.data_loading.dataset.AbstractDataset, batch_size=1, num_batches=None, seed=1, sampler=None)[source]

Bases: sphinx.ext.autodoc.importer._MockObject

Class to create a data batch out of data samples


Helper functions which returns an element of the dataset

Parameters:index (int) – index specifying which sample to return
Returns:Returned Data
Return type:dict

Generate Indices which behavior based on self.sampling gets data based on indices

Returns:data and labels
Return type:dict
Raises:StopIteration – If the maximum number of batches has been generated