Class AmesRandomAccess.Builder

    • Method Detail

      • optUsage

        public AmesRandomAccess.Builder optUsage​(ai.djl.training.dataset.Dataset.Usage usage)
        Sets the optional usage.
        Parameters:
        usage - the new usage
        Returns:
        this builder
      • optRepository

        public AmesRandomAccess.Builder optRepository​(ai.djl.repository.Repository repository)
        Sets the optional repository.
        Parameters:
        repository - the repository
        Returns:
        this builder
      • optGroupId

        public AmesRandomAccess.Builder optGroupId​(java.lang.String groupId)
        Sets optional groupId.
        Parameters:
        groupId - the groupId}
        Returns:
        this builder
      • optArtifactId

        public AmesRandomAccess.Builder optArtifactId​(java.lang.String artifactId)
        Sets the optional artifactId.
        Parameters:
        artifactId - the artifactId
        Returns:
        this builder
      • addFeature

        public AmesRandomAccess.Builder addFeature​(java.lang.String name)
        Adds a feature to the features set.
        Parameters:
        name - the name of the feature
        Returns:
        this builder
      • addFeature

        public AmesRandomAccess.Builder addFeature​(java.lang.String name,
                                                   boolean onehotEncode)
        Adds a feature to the features set with onehot encoding.
        Parameters:
        name - the name of the feature
        onehotEncode - true if use onehot encoding
        Returns:
        this builder
      • getAvailableFeatures

        public java.util.List<java.lang.String> getAvailableFeatures()
        Returns the available features of this dataset.
        Returns:
        a list of feature names