Class FashionMnist.Builder
java.lang.Object
ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
ai.djl.basicdataset.cv.classification.FashionMnist.Builder
- Enclosing class:
- FashionMnist
public static final class FashionMnist.Builder
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
A builder for a
FashionMnist.-
Field Summary
Fields inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
dataBatchifier, device, labelBatchifier, limit, pipeline, prefetchNumber, sampler, targetPipeline -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theMnist.optArtifactId(String artifactId) Sets the optional artifactId.optGroupId(String groupId) Sets optional groupId.optManager(ai.djl.ndarray.NDManager manager) Sets the optional manager for the dataset (default follows engine default).optRepository(ai.djl.repository.Repository repository) Sets the optional repository.optUsage(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage.protected FashionMnist.Builderself()Methods inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
addTargetTransform, addTransform, getSampler, optDataBatchifier, optDevice, optLabelBatchifier, optLimit, optPipeline, optPrefetchNumber, optTargetPipeline, setSampling, setSampling, setSampling
-
Method Details
-
self
- Specified by:
selfin classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<FashionMnist.Builder>
-
optManager
Sets the optional manager for the dataset (default follows engine default).- Parameters:
manager- the manager- Returns:
- this builder
-
optRepository
Sets the optional repository.- Parameters:
repository- the repository- Returns:
- this builder
-
optGroupId
Sets optional groupId.- Parameters:
groupId- the groupId}- Returns:
- this builder
-
optArtifactId
Sets the optional artifactId.- Parameters:
artifactId- the artifactId- Returns:
- this builder
-
optUsage
Sets the optional usage.- Parameters:
usage- the usage- Returns:
- this builder
-
build
Builds theMnist.- Returns:
- the
Mnist
-