Class EmbeddingTableConfigBuilder

    • Method Detail

      • setEmbeddingDimension

        public EmbeddingTableConfigBuilder setEmbeddingDimension​(int dim)
        Set the dimension of the vectors that categories will be encoded to in the embedding table.
        Parameters:
        dim - embedding dimension
        Returns:
        this
        Since:
        23.2
      • setOutOfVocabularyProbability

        public EmbeddingTableConfigBuilder setOutOfVocabularyProbability​(double outOfVocabularyProbability)
        Set the probability to set category values in the input data to the out of vocabulary token randomly during training to learn a meaningful OOV embedding. This procedure is disabled during inference.
        Parameters:
        outOfVocabularyProbability - probability of randomly setting a token to the out of vocabulary token
        Returns:
        this
        Since:
        23.2