Skip to main content

random

Function random 

Source
pub fn random(dataset_size: usize, seed: Option<u64>) -> RandomSampler
Expand 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 dataset
  • seed - Optional random seed for reproducible sampling