Package oracle.pgx.api.mllib
Class EdgeWiseModelBuilder<Model extends EdgeWiseModel,Config extends EdgeWiseModelConfig,Self extends EdgeWiseModelBuilder>
- java.lang.Object
-
- oracle.pgx.api.mllib.WiseModelBuilder<Config,Self>
-
- oracle.pgx.api.mllib.EdgeWiseModelBuilder<Model,Config,Self>
-
- Direct Known Subclasses:
SupervisedEdgeWiseModelBuilder,UnsupervisedEdgeWiseModelBuilder
public abstract class EdgeWiseModelBuilder<Model extends EdgeWiseModel,Config extends EdgeWiseModelConfig,Self extends EdgeWiseModelBuilder> extends WiseModelBuilder<Config,Self>
Abstract builder class for EdgeWise models. UseSupervisedEdgeWiseModelBuilderinstead of this.- Since:
- 23.1
-
-
Constructor Summary
Constructors Constructor Description EdgeWiseModelBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Modelbuild()Builds the EdgeWise model with the specified parameters.SelfsetEdgeCombinationMethod(EdgeCombinationMethod edgeCombinationMethod)Sets the edge embedding method for the algorithm.SelfsetTargetEdgeLabels(java.lang.String... targetEdgeLabels)Set the target edge labels for the algorithm.SelfsetTargetEdgeLabels(java.util.List<java.lang.String> targetEdgeLabels)Set the target edge labels for the algorithm.-
Methods inherited from class oracle.pgx.api.mllib.WiseModelBuilder
setBatchSize, setConvLayerConfigs, setEdgeInputPropertyConfigs, setEdgeInputPropertyNames, setEdgeInputPropertyNames, setEmbeddingDim, setEnableAccelerator, setLearningRate, setNormalize, setNumEpochs, setSeed, setShuffle, setStandardize, setValidationConfig, setVertexInputPropertyConfigs, setVertexInputPropertyNames, setVertexInputPropertyNames, setWeightDecay
-
-
-
-
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. SeeEdgeCombinationMethoddefault:
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.InterruptedExceptionjava.util.concurrent.ExecutionException- Since:
- 23.1
-
-