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 Object
Builder for
CategoricalPropertyConfig. One Hot Encoding and Embedding Layer methods are supported.- Since:
- 23.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the default type of categorical feature configuration if a type was not specifiedCreate the builder for anEmbeddingTableConfig.Create the builder for aOneHotEncodingConfig.setMaxVocabularySize(int size) Set the maximum vocabulary size for categories.setShared(boolean isShared) Set whether the feature is treated as shared globally among vertex/edge types or considered as separate features per type.
-
Constructor Details
-
CategoricalPropertyConfigBuilder
-
-
Method Details
-
setMaxVocabularySize
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
Create the builder for aOneHotEncodingConfig.- Returns:
- this
- Since:
- 23.2
-
embeddingTable
Create the builder for anEmbeddingTableConfig.- Returns:
- this
- Since:
- 23.2
-
build
Builds the default type of categorical feature configuration if a type was not specified- Returns:
- built configuration
- Since:
- 23.2
-