Class CategoricalPropertyConfigBuilder<Config extends CategoricalPropertyConfig,​Self extends CategoricalPropertyConfigBuilder>

    • Constructor Detail

      • CategoricalPropertyConfigBuilder

        public CategoricalPropertyConfigBuilder​(java.lang.String propertyName)
    • 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
      • 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.

        default: CategoricalPropertyConfig.DEFAULT_SHARED

        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