public class EmbeddingTableConfigBuilder extends CategoricalPropertyConfigBuilder<EmbeddingTableConfig,EmbeddingTableConfigBuilder>
EmbeddingTableConfig.| Modifier and Type | Method and Description |
|---|---|
EmbeddingTableConfig |
build()
Build the configuration
|
EmbeddingTableConfigBuilder |
setEmbeddingDimension(int dim)
Set the dimension of the vectors that categories will be encoded to in the embedding table.
|
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.
|
embeddingTable, oneHotEncoding, setMaxVocabularySize, setSharedpublic EmbeddingTableConfig build()
build in class CategoricalPropertyConfigBuilder<EmbeddingTableConfig,EmbeddingTableConfigBuilder>public EmbeddingTableConfigBuilder setEmbeddingDimension(int dim)
dim - embedding dimensionpublic EmbeddingTableConfigBuilder setOutOfVocabularyProbability(double outOfVocabularyProbability)
outOfVocabularyProbability - probability of randomly setting a token to the out of vocabulary token