Overview
Base dataset abstraction used by model-specific dataset classes. Subclasses should implementpreprocess() and get_data_loader() methods.
Class signature
Parameters
Name of the dataset. If provided, a corresponding
get_{name}_dataset function may be used to populate data.Name of the datetime column in the source CSV.
Path to the dataset file. If omitted, the loader function for
name is called.Batch size to be used by dataloaders.
Mode of dataset usage, e.g.
'train' or 'test'.Extra backend-specific options.
Methods
__len__()
Return the number of items in the dataset.
int - Number of samples in the dataset (len(self.data)).
preprocess()
Preprocess method to be implemented by subclasses.
get_data_loader()
Get data loader method to be implemented by subclasses.
save()
Save the dataset to disk.
path(str): Path where the dataset will be saved.