Sampler
An algorithm that decides what indices of a dataset to load. Note that this algorithm does not load data, and hence is not a dataloader.
Metaphorically speaking, if we let a dataset be a warehouse, a dataloader be a human, a batch be a crate, and the sampler be the manager, then the manager is responsible for informing the human what items to gather from the warehouse, who then puts them into crates.
Back to top