Class RandomSampler

java.lang.Object
ai.djl.training.dataset.RandomSampler
All Implemented Interfaces:
Sampler.SubSampler

public class RandomSampler extends Object implements Sampler.SubSampler
RandomSampler is an implementation of the Sampler.SubSampler interface.

RandomSampler samples the data from [0, dataset.size) randomly.