Package ai.djl.basicdataset.tabular
Class AirfoilRandomAccess.Builder
java.lang.Object
ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
ai.djl.basicdataset.tabular.TabularDataset.BaseBuilder<T>
ai.djl.basicdataset.tabular.CsvDataset.CsvBuilder<AirfoilRandomAccess.Builder>
ai.djl.basicdataset.tabular.AirfoilRandomAccess.Builder
- Enclosing class:
- AirfoilRandomAccess
public static final class AirfoilRandomAccess.Builder
extends CsvDataset.CsvBuilder<AirfoilRandomAccess.Builder>
A builder to construct a
AirfoilRandomAccess.-
Field Summary
Fields inherited from class ai.djl.basicdataset.tabular.CsvDataset.CsvBuilder
csvFormat, csvUrlFields inherited from class ai.djl.basicdataset.tabular.TabularDataset.BaseBuilder
allowNoLabels, features, labelsFields inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
dataBatchifier, device, labelBatchifier, limit, pipeline, prefetchNumber, sampler, targetPipeline -
Method Summary
Modifier and TypeMethodDescriptionaddFeature(String name) Adds a feature to the features set.build()Builds the newCsvDataset.Returns the available features of this dataset.optArtifactId(String artifactId) Sets the optional artifactId.optGroupId(String groupId) Sets optional groupId.optNormalize(boolean normalize) Sets if normalize the dataset.optRepository(ai.djl.repository.Repository repository) Sets the optional repository.optUsage(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage.self()Methods inherited from class ai.djl.basicdataset.tabular.CsvDataset.CsvBuilder
optCsvFile, optCsvUrl, setCsvFormatMethods inherited from class ai.djl.basicdataset.tabular.TabularDataset.BaseBuilder
addCategoricalFeature, addCategoricalFeature, addCategoricalFeature, addCategoricalLabel, addCategoricalLabel, addCategoricalLabel, addFeature, addLabel, addNumericFeature, addNumericFeature, addNumericLabel, addNumericLabel, noLabelsMethods 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
- Overrides:
selfin classCsvDataset.CsvBuilder<AirfoilRandomAccess.Builder>
-
optUsage
Sets the optional usage.- Parameters:
usage- the new usage- 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
-
optNormalize
Sets if normalize the dataset.- Parameters:
normalize- true to normalize the dataset- Returns:
- the builder
-
getAvailableFeatures
Returns the available features of this dataset.- Returns:
- a list of feature names
-
addFeature
Adds a feature to the features set.- Parameters:
name- the name of the feature- Returns:
- this builder
-
build
Builds the newCsvDataset.- Overrides:
buildin classCsvDataset.CsvBuilder<AirfoilRandomAccess.Builder>- Returns:
- the new
CsvDataset
-