public static final class AmesRandomAccess.Builder extends CsvDataset.CsvBuilder<AmesRandomAccess.Builder>
AmesRandomAccess.csvFormat, csvUrl, features, labels| Modifier and Type | Method and Description |
|---|---|
AmesRandomAccess.Builder |
addFeature(java.lang.String name)
Adds a feature to the features set.
|
AmesRandomAccess.Builder |
addFeature(java.lang.String name,
boolean onehotEncode)
Adds a feature to the features set with onehot encoding.
|
AmesRandomAccess |
build()
Builds the new
AmesRandomAccess. |
java.util.List<java.lang.String> |
getAvailableFeatures()
Returns the available features of this dataset.
|
AmesRandomAccess.Builder |
optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.
|
AmesRandomAccess.Builder |
optGroupId(java.lang.String groupId)
Sets optional groupId.
|
AmesRandomAccess.Builder |
optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.
|
AmesRandomAccess.Builder |
optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.
|
AmesRandomAccess.Builder |
self() |
addCategoricalFeature, addCategoricalFeature, addCategoricalLabel, addCategoricalLabel, addFeature, addLabel, addNumericFeature, addNumericLabel, optCsvFile, optCsvUrl, setCsvFormatpublic AmesRandomAccess.Builder self()
self in class CsvDataset.CsvBuilder<AmesRandomAccess.Builder>public AmesRandomAccess.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
usage - the new usagepublic AmesRandomAccess.Builder optRepository(ai.djl.repository.Repository repository)
repository - the repositorypublic AmesRandomAccess.Builder optGroupId(java.lang.String groupId)
groupId - the groupId}public AmesRandomAccess.Builder optArtifactId(java.lang.String artifactId)
artifactId - the artifactIdpublic AmesRandomAccess.Builder addFeature(java.lang.String name)
name - the name of the featurepublic AmesRandomAccess.Builder addFeature(java.lang.String name, boolean onehotEncode)
name - the name of the featureonehotEncode - true if use onehot encodingpublic java.util.List<java.lang.String> getAvailableFeatures()
public AmesRandomAccess build()
AmesRandomAccess.build in class CsvDataset.CsvBuilder<AmesRandomAccess.Builder>AmesRandomAccess