Package ai.djl.training.dataset
Interface Sampler.SubSampler
-
- All Known Implementing Classes:
RandomSampler,SequenceSampler
- Enclosing interface:
- Sampler
public static interface Sampler.SubSamplerAn interface that samples a single data item at a time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<java.lang.Long>sample(RandomAccessDataset dataset)Fetches an iterator that iterates through the indices of the givenRandomAccessDataset.
-
-
-
Method Detail
-
sample
java.util.Iterator<java.lang.Long> sample(RandomAccessDataset dataset)
Fetches an iterator that iterates through the indices of the givenRandomAccessDataset.- Parameters:
dataset- theRandomAccessDatasetto sample from- Returns:
- an iterator that iterates through the indices of the given
RandomAccessDataset
-
-