Module indexable

Source
Expand description

§Indexable Dataloader.

Modules§

sampler
Defines the strategy to draw samples from the dataset.

Structs§

DataLoader
Data loader. Combines a dataset and a sampler, and provides an iterable over the given dataset.
NdarrayDataset
Basic dataset than can contains two ndarray of any dimension.

Traits§

Dataset
A dataset is just something that has a length and is indexable. A Vec of dataset collate output must also be collatable.
GetSample
Return a sample from the dataset at a given index.
Len
Basic trait for anything that could have a length. Even if a lot of struct have a len() method in the standard library, to my knowledge this function is not included into any standard trait.