Class CategoricalPropertyConfig
- java.lang.Object
-
- oracle.pgx.config.mllib.inputconfig.InputPropertyConfig
-
- oracle.pgx.config.mllib.inputconfig.CategoricalPropertyConfig
-
- Direct Known Subclasses:
EmbeddingTableConfig
,OneHotEncodingConfig
public class CategoricalPropertyConfig extends InputPropertyConfig
Configuration class for categorical feature handling. SeeCategoricalPropertyConfigBuilder
for a description of the hyperparameters. Inhereted by the following currently supported config types:EmbeddingTableConfig
SeeEmbeddingTableConfigBuilder
for a description of the hyperparameters.OneHotEncodingConfig
SeeOneHotEncodingConfigBuilder
for a description of the hyperparameters.- Since:
- 23.2
-
-
Field Summary
Fields Modifier and Type Field Description static CategoricalEmbeddingType
DEFAULT_CATEGORY_METHOD
One Hot Encoding Methodstatic int
DEFAULT_MAX_VOCAB
1000static boolean
DEFAULT_SHARED
true
-
Constructor Summary
Constructors Constructor Description CategoricalPropertyConfig(java.lang.String propertyName)
CategoricalPropertyConfig(java.lang.String propertyName, CategoricalEmbeddingType type)
CategoricalPropertyConfig(CategoricalPropertyConfig otherConfig, CategoricalEmbeddingType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CategoricalEmbeddingType
getCategoricalEmbeddingType()
int
getMaxVocabularySize()
boolean
getShared()
void
setMaxVocabularySize(int size)
void
setShared(boolean isShared)
void
validateProperties()
-
Methods inherited from class oracle.pgx.config.mllib.inputconfig.InputPropertyConfig
getCategorical, getPropertyName
-
-
-
-
Field Detail
-
DEFAULT_CATEGORY_METHOD
public static final CategoricalEmbeddingType DEFAULT_CATEGORY_METHOD
One Hot Encoding Method
-
DEFAULT_SHARED
public static final boolean DEFAULT_SHARED
true- See Also:
- Constant Field Values
-
DEFAULT_MAX_VOCAB
public static final int DEFAULT_MAX_VOCAB
1000- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategoricalPropertyConfig
public CategoricalPropertyConfig(java.lang.String propertyName)
-
CategoricalPropertyConfig
public CategoricalPropertyConfig(java.lang.String propertyName, CategoricalEmbeddingType type)
-
CategoricalPropertyConfig
public CategoricalPropertyConfig(CategoricalPropertyConfig otherConfig, CategoricalEmbeddingType type)
-
-
Method Detail
-
setShared
public void setShared(boolean isShared)
-
getShared
public boolean getShared()
-
getCategoricalEmbeddingType
public CategoricalEmbeddingType getCategoricalEmbeddingType()
-
setMaxVocabularySize
public void setMaxVocabularySize(int size)
-
getMaxVocabularySize
public int getMaxVocabularySize()
-
validateProperties
public void validateProperties()
-
-