brain_pipe.dataloaders.base.DataLoader¶
- class DataLoader(has_length=True)¶
-
Base class to load data from a source.
DataLoaders are used to load data from a source (e.g. a file) and iterate over it. Therefore, they have an __iter__ method that should be implemented in subclasses.
- __init__(has_length=True)¶
Initialize the DataLoader.
Methods
__init__
([has_length])Initialize the DataLoader.
Compute the length of the DataLoader.