public class CategoricalPropertyConfigBuilder<Config extends CategoricalPropertyConfig,Self extends CategoricalPropertyConfigBuilder>
extends java.lang.Object
CategoricalPropertyConfig
. One Hot Encoding and Embedding Layer methods are supported.Constructor and Description |
---|
CategoricalPropertyConfigBuilder(java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
CategoricalPropertyConfig |
build()
Builds the default type of categorical feature configuration if a type was not specified
|
EmbeddingTableConfigBuilder |
embeddingTable()
Create the builder for an
EmbeddingTableConfig . |
OneHotEncodingConfigBuilder |
oneHotEncoding()
Create the builder for a
OneHotEncodingConfig . |
Self |
setMaxVocabularySize(int size)
Set the maximum vocabulary size for categories.
|
Self |
setShared(boolean isShared)
Set whether the feature is treated as shared globally among vertex/edge types
or considered as separate features per type.
|
public CategoricalPropertyConfigBuilder(java.lang.String propertyName)
public CategoricalPropertyConfig build()
public final EmbeddingTableConfigBuilder embeddingTable()
EmbeddingTableConfig
.public final OneHotEncodingConfigBuilder oneHotEncoding()
OneHotEncodingConfig
.public Self setMaxVocabularySize(int size)
size
- maximum vocabulary sizepublic Self setShared(boolean isShared)
isShared
- whether the feature is shared