pub fn random(dataset_size: usize, seed: Option<u64>) -> RandomSamplerExpand description
Create a random sampler
Convenience function for creating a random sampler that yields all indices in random order without replacement.
ยงArguments
dataset_size- Number of samples in the datasetseed- Optional random seed for reproducible sampling