public class SequenceSampler extends java.lang.Object implements Sampler.SubSampler
SequenceSampler
is an implementation of the Sampler.SubSampler
interface.
SequenceSampler
samples the data from [0, dataset.size) sequentially.
Constructor and Description |
---|
SequenceSampler() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.Long> |
sample(RandomAccessDataset dataset)
Fetches an iterator that iterates through the indices of the given
RandomAccessDataset . |
public java.util.Iterator<java.lang.Long> sample(RandomAccessDataset dataset)
RandomAccessDataset
.sample
in interface Sampler.SubSampler
dataset
- the RandomAccessDataset
to sample fromRandomAccessDataset