Package ai.djl.training.dataset
Interface Sampler.SubSampler
- All Known Implementing Classes:
RandomSampler,SequenceSampler
- Enclosing interface:
- Sampler
public static interface Sampler.SubSampler
An interface that samples a single data item at a time.
-
Method Summary
Modifier and TypeMethodDescriptionsample(RandomAccessDataset dataset) Fetches an iterator that iterates through the indices of the givenRandomAccessDataset.
-
Method Details
-
sample
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
-