Package ai.djl.training.dataset
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.
-
ClassDescriptionThe Builder to construct an
ArrayDataset.ABatchis used to hold multiple items (data and label pairs) from aDataset.BatchSampleris aSamplerthat returns a single epoch over the data.BulkDataIterable specializes DataIterable in usingArrayDataset.getByRange(NDManager, long, long)orArrayDataset.getByIndices(NDManager, long...)to createBatchinstances more efficiently.DataIterable is a data loader that combinesDataset,Batchifier,Pipeline, andSamplerto provide an iterable over the givenRandomAccessDataset.An interface to represent a set of sample data/label pairs to train a model.An enum that indicates the mode - training, test or validation.RandomAccessDataset represent the dataset that support random access reads.The Builder to construct aRandomAccessDataset.RandomSampleris an implementation of theSampler.SubSamplerinterface.RawDataset<T>An interface can read a plain java object from dataset.Recordrepresents a single element of data and labels fromDataset.An interface for sampling data items from aRandomAccessDataset.An interface that samples a single data item at a time.SequenceSampleris an implementation of theSampler.SubSamplerinterface.