Class EdgeWiseModelBuilder<Model extends EdgeWiseModel,​Config extends EdgeWiseModelConfig,​Self extends EdgeWiseModelBuilder>

    • Constructor Detail

      • EdgeWiseModelBuilder

        public EdgeWiseModelBuilder()
    • Method Detail

      • setTargetEdgeLabels

        public Self setTargetEdgeLabels​(java.util.List<java.lang.String> targetEdgeLabels)
        Set the target edge labels for the algorithm. Only the related edges need to have the target property. Training and inference will be done on the edges with those labels
        Parameters:
        targetEdgeLabels - list of label names
        Returns:
        this
        Since:
        23.1
      • setTargetEdgeLabels

        public Self setTargetEdgeLabels​(java.lang.String... targetEdgeLabels)
        Set the target edge labels for the algorithm. Only the related edges need to have the target property.
        Parameters:
        targetEdgeLabels - label names
        Returns:
        this
        Since:
        23.1
      • setEdgeCombinationMethod

        public Self setEdgeCombinationMethod​(EdgeCombinationMethod edgeCombinationMethod)
        Sets the edge embedding method for the algorithm. See EdgeCombinationMethod

        default: EdgeCombinationMethods.DEFAULT_CONCAT_METHOD

        Parameters:
        edgeCombinationMethod - edge embedding method
        Returns:
        this
        Since:
        23.1
      • build

        public abstract Model build()
                             throws java.lang.InterruptedException,
                                    java.util.concurrent.ExecutionException
        Builds the EdgeWise model with the specified parameters.
        Returns:
        EdgeWise model
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        Since:
        23.1