Package oracle.pgx.api.mllib
Class GraphWiseModelBuilder<Model extends GraphWiseModel,Config extends GraphWiseModelConfig,Self extends GraphWiseModelBuilder>
java.lang.Object
oracle.pgx.api.mllib.WiseModelBuilder<Config,Self>
oracle.pgx.api.mllib.GraphWiseModelBuilder<Model,Config,Self>
- Direct Known Subclasses:
SupervisedGraphWiseModelBuilder,UnsupervisedAnomalyDetectionGraphWiseModelBuilder,UnsupervisedGraphWiseModelBuilder
public abstract class GraphWiseModelBuilder<Model extends GraphWiseModel,Config extends GraphWiseModelConfig,Self extends GraphWiseModelBuilder>
extends WiseModelBuilder<Config,Self>
Abstract builder class for GraphWise models. Use
SupervisedGraphWiseModelBuilder instead of this.- Since:
- 19.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Modelbuild()Builds the GraphWise model with the specified parameters.setTargetVertexLabels(String... targetVertexLabels) Set the target vertex labels for the algorithm.setTargetVertexLabels(List<String> targetVertexLabels) Set the target vertex 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
-
Constructor Details
-
GraphWiseModelBuilder
public GraphWiseModelBuilder()
-
-
Method Details
-
setTargetVertexLabels
Set the target vertex labels for the algorithm. Only the related vertices need to have the target property. Training and inference will be done on the vertices with those labels- Parameters:
targetVertexLabels- list of label names- Returns:
- this
- Since:
- 22.2
-
setTargetVertexLabels
Set the target vertex labels for the algorithm. Only the related vertices need to have the target property.- Parameters:
targetVertexLabels- label names- Returns:
- this
- Since:
- 22.2
-
build
Builds the GraphWise model with the specified parameters.- Returns:
- GraphWise model
- Throws:
InterruptedExceptionExecutionException- Since:
- 19.4
-