Package ai.djl.training.dataset
Contains classes to download and prepare training and testing data.
The central class to work with in this package is the Dataset.
In practice, most of the implementations of Dataset will actually
extend RandomAccessDataset instead.
-
Interface Summary Interface Description Dataset An interface to represent a set of sample data/label pairs to train a model.RawDataset<T> An interface can read a plain java object from dataset.Sampler An interface for sampling data items from aRandomAccessDataset.Sampler.SubSampler An interface that samples a single data item at a time. -
Class Summary Class Description ArrayDataset ArrayDataset.Builder The Builder to construct anArrayDataset.Batch ABatchis used to hold multiple items (data and label pairs) from aDataset.BatchSampler BatchSampleris aSamplerthat returns a single epoch over the data.BulkDataIterable BulkDataIterable specializes DataIterable in usingArrayDataset.getByRange(NDManager, long, long)orArrayDataset.getByIndices(NDManager, long...)to createBatchinstances more efficiently.DataIterable DataIterable is a data loader that combinesDataset,Batchifier,Pipeline, andSamplerto provide an iterable over the givenRandomAccessDataset.RandomAccessDataset RandomAccessDataset represent the dataset that support random access reads.RandomAccessDataset.BaseBuilder<T extends RandomAccessDataset.BaseBuilder<T>> The Builder to construct aRandomAccessDataset.RandomSampler RandomSampleris an implementation of theSampler.SubSamplerinterface.Record Recordrepresents a single element of data and labels fromDataset.SequenceSampler SequenceSampleris an implementation of theSampler.SubSamplerinterface. -
Enum Summary Enum Description Dataset.Usage An enum that indicates the mode - training, test or validation.