Class CaptchaDataset.Builder
java.lang.Object
ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<CaptchaDataset.Builder>
ai.djl.basicdataset.cv.classification.CaptchaDataset.Builder
- Enclosing class:
- CaptchaDataset
public static final class CaptchaDataset.Builder
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<CaptchaDataset.Builder>
A builder for a
CaptchaDataset
.-
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 theCaptchaDataset
.optArtifactId
(String artifactId) Sets the optional artifactId.optGroupId
(String groupId) Sets optional groupId.optRepository
(ai.djl.repository.Repository repository) Sets the optional repository.optUsage
(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage.protected CaptchaDataset.Builder
self()
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:
self
in classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<CaptchaDataset.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 theCaptchaDataset
.- Returns:
- the
CaptchaDataset
-