Expand description

Defines the strategy to draw samples from the dataset.

Structs

  • An iterator for the batch. Yield a sequence of index at each iteration.
  • Wraps another sampler to yield a mini-batch of indices.
  • Sampler that returns random index between zero and data_source_len.
  • Yield index from zero to data_source_len in ascending order.

Traits

  • Every Sampler is iterable and has a length.