Package oracle.pgx.api.mllib
Class UnsupervisedAnomalyDetectionGraphWiseModelBuilder
- java.lang.Object
-
- oracle.pgx.api.mllib.WiseModelBuilder<Config,Self>
-
- oracle.pgx.api.mllib.GraphWiseModelBuilder<UnsupervisedAnomalyDetectionGraphWiseModel,UnsupervisedGraphWiseModelConfig,UnsupervisedAnomalyDetectionGraphWiseModelBuilder>
-
- oracle.pgx.api.mllib.UnsupervisedAnomalyDetectionGraphWiseModelBuilder
-
public class UnsupervisedAnomalyDetectionGraphWiseModelBuilder extends GraphWiseModelBuilder<UnsupervisedAnomalyDetectionGraphWiseModel,UnsupervisedGraphWiseModelConfig,UnsupervisedAnomalyDetectionGraphWiseModelBuilder>
Builder forUnsupervisedAnomalyDetectionGraphWiseModel
The builder can be used to set the configuration of the model and create the model object.- Since:
- 23.2
-
-
Constructor Summary
Constructors Constructor Description UnsupervisedAnomalyDetectionGraphWiseModelBuilder(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, java.util.function.BiFunction<PgxSession,oracle.pgx.api.internal.Graph,PgxGraph> graphConstructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsupervisedAnomalyDetectionGraphWiseModel
build()
Builds the UnsupervisedAnomalyDetectionGraphWiseModel model with the specified parameters.UnsupervisedAnomalyDetectionGraphWiseModelBuilder
setEmbeddingConfig(GraphWiseEmbeddingConfig embeddingConfig)
Set the embedding configuration (SeeGraphWiseEmbeddingConfig
.UnsupervisedAnomalyDetectionGraphWiseModelBuilder
setLossFunction(UnsupervisedGraphWiseModelConfig.LossFunction lossFunction)
Sets the loss function for the algorithm.-
Methods inherited from class oracle.pgx.api.mllib.GraphWiseModelBuilder
setTargetVertexLabels, setTargetVertexLabels
-
Methods inherited from class oracle.pgx.api.mllib.WiseModelBuilder
setBatchSize, setConvLayerConfigs, setEdgeInputPropertyConfigs, setEdgeInputPropertyNames, setEdgeInputPropertyNames, setEmbeddingDim, setEnableAccelerator, setLearningRate, setNormalize, setNumEpochs, setSeed, setShuffle, setStandardize, setVertexInputPropertyConfigs, setVertexInputPropertyNames, setVertexInputPropertyNames, setWeightDecay
-
-
-
-
Constructor Detail
-
UnsupervisedAnomalyDetectionGraphWiseModelBuilder
public UnsupervisedAnomalyDetectionGraphWiseModelBuilder(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, java.util.function.BiFunction<PgxSession,oracle.pgx.api.internal.Graph,PgxGraph> graphConstructor)
-
-
Method Detail
-
setEmbeddingConfig
public UnsupervisedAnomalyDetectionGraphWiseModelBuilder setEmbeddingConfig(GraphWiseEmbeddingConfig embeddingConfig)
Set the embedding configuration (SeeGraphWiseEmbeddingConfig
.default:
UnsupervisedGraphWiseModelConfig.DEFAULT_DGI_LAYER_CONFIG
- Parameters:
embeddingConfig
- layer configs- Returns:
- this
- Since:
- 23.2
-
setLossFunction
public UnsupervisedAnomalyDetectionGraphWiseModelBuilder setLossFunction(UnsupervisedGraphWiseModelConfig.LossFunction lossFunction)
Sets the loss function for the algorithm. SeeUnsupervisedGraphWiseModelConfig.LossFunction
default:
UnsupervisedGraphWiseModelConfig.LossFunction.SIGMOID_CROSS_ENTROPY
- Parameters:
lossFunction
- loss function- Returns:
- this
- Since:
- 23.2
-
build
public UnsupervisedAnomalyDetectionGraphWiseModel build() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Builds the UnsupervisedAnomalyDetectionGraphWiseModel model with the specified parameters.- Specified by:
build
in classGraphWiseModelBuilder<UnsupervisedAnomalyDetectionGraphWiseModel,UnsupervisedGraphWiseModelConfig,UnsupervisedAnomalyDetectionGraphWiseModelBuilder>
- Returns:
- UnsupervisedAnomalyDetectionGraphWiseModel model
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
- Since:
- 23.2
-
-