Package oracle.pgx.api.mllib
Class CategoricalPropertyConfigBuilder<Config extends CategoricalPropertyConfig,Self extends CategoricalPropertyConfigBuilder>
- java.lang.Object
-
- oracle.pgx.api.mllib.CategoricalPropertyConfigBuilder<Config,Self>
-
- Direct Known Subclasses:
EmbeddingTableConfigBuilder,OneHotEncodingConfigBuilder
public class CategoricalPropertyConfigBuilder<Config extends CategoricalPropertyConfig,Self extends CategoricalPropertyConfigBuilder> extends java.lang.ObjectBuilder forCategoricalPropertyConfig. One Hot Encoding and Embedding Layer methods are supported.- Since:
- 23.2
-
-
Constructor Summary
Constructors Constructor Description CategoricalPropertyConfigBuilder(java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CategoricalPropertyConfigbuild()Builds the default type of categorical feature configuration if a type was not specifiedEmbeddingTableConfigBuilderembeddingTable()Create the builder for anEmbeddingTableConfig.OneHotEncodingConfigBuilderoneHotEncoding()Create the builder for aOneHotEncodingConfig.SelfsetMaxVocabularySize(int size)Set the maximum vocabulary size for categories.SelfsetShared(boolean isShared)Set whether the feature is treated as shared globally among vertex/edge types or considered as separate features per type.
-
-
-
Method Detail
-
setMaxVocabularySize
public Self setMaxVocabularySize(int size)
Set the maximum vocabulary size for categories. The most frequent categories numbering "max vocabulary size" are kept. Category values below this cutoff are not recorded and set to the OOV token.- Parameters:
size- maximum vocabulary size- Returns:
- this
- Since:
- 23.2
-
oneHotEncoding
public final OneHotEncodingConfigBuilder oneHotEncoding()
Create the builder for aOneHotEncodingConfig.- Returns:
- this
- Since:
- 23.2
-
embeddingTable
public final EmbeddingTableConfigBuilder embeddingTable()
Create the builder for anEmbeddingTableConfig.- Returns:
- this
- Since:
- 23.2
-
setShared
public Self setShared(boolean isShared)
Set whether the feature is treated as shared globally among vertex/edge types or considered as separate features per type.- Parameters:
isShared- whether the feature is shared- Returns:
- this
- Since:
- 23.2
-
build
public CategoricalPropertyConfig build()
Builds the default type of categorical feature configuration if a type was not specified- Returns:
- built configuration
- Since:
- 23.2
-
-