pub trait Sampler: Len + IntoIterator<Item = usize> + Copy {
    // Required method
    fn new(data_source_len: usize) -> Self;
}
Expand description

Every Sampler is iterable and has a length.

Required Methods§

source

fn new(data_source_len: usize) -> Self

Create a new sampler form the dataset length.

Implementors§