public class CategoricalPropertyConfig extends InputPropertyConfig
CategoricalPropertyConfigBuilder
for a description of the hyperparameters.
Inhereted by the following currently supported config types:
EmbeddingTableConfig
See EmbeddingTableConfigBuilder
for a description of the hyperparameters.
OneHotEncodingConfig
See OneHotEncodingConfigBuilder
for a description of the hyperparameters.Modifier and Type | Field and Description |
---|---|
static CategoricalEmbeddingType |
DEFAULT_CATEGORY_METHOD
One Hot Encoding Method
|
static int |
DEFAULT_MAX_VOCAB
1000
|
static boolean |
DEFAULT_SHARED
true
|
Constructor and Description |
---|
CategoricalPropertyConfig(CategoricalPropertyConfig otherConfig,
CategoricalEmbeddingType type) |
CategoricalPropertyConfig(java.lang.String propertyName) |
CategoricalPropertyConfig(java.lang.String propertyName,
CategoricalEmbeddingType type) |
Modifier and Type | Method and Description |
---|---|
CategoricalEmbeddingType |
getCategoricalEmbeddingType() |
int |
getMaxVocabularySize() |
boolean |
getShared() |
void |
setMaxVocabularySize(int size) |
void |
setShared(boolean isShared) |
void |
validateProperties() |
getCategorical, getPropertyName
public static final CategoricalEmbeddingType DEFAULT_CATEGORY_METHOD
public static final int DEFAULT_MAX_VOCAB
public static final boolean DEFAULT_SHARED
public CategoricalPropertyConfig(CategoricalPropertyConfig otherConfig, CategoricalEmbeddingType type)
public CategoricalPropertyConfig(java.lang.String propertyName)
public CategoricalPropertyConfig(java.lang.String propertyName, CategoricalEmbeddingType type)
public CategoricalEmbeddingType getCategoricalEmbeddingType()
public int getMaxVocabularySize()
public boolean getShared()
public void setMaxVocabularySize(int size)
public void setShared(boolean isShared)
public void validateProperties()