public abstract class GraphWiseModelBuilder<Model extends GraphWiseModel,Config extends oracle.pgx.config.mllib.GraphWiseModelConfig,Self extends GraphWiseModelBuilder>
extends java.lang.Object
SupervisedGraphWiseModelBuilder instead of this.| Constructor and Description |
|---|
GraphWiseModelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract Model |
build()
Builds the GraphWise model with the specified parameters.
|
Self |
setBatchSize(int batchSize)
Set the batch size.
|
Self |
setConvLayerConfigs(oracle.pgx.config.mllib.GraphWiseConvLayerConfig... layerConfigs)
Set the convolutional layer configurations (See
GraphWiseConvLayerConfig). |
Self |
setEmbeddingDim(int embeddingDim)
Set the embedding dimension of the model.
|
Self |
setLearningRate(double learningRate)
Set the learning rate used for the Adam optimizer
|
Self |
setNumEpochs(int numEpochs)
Set the number of training epochs.
|
Self |
setSeed(java.lang.Integer seed)
Sets the random seed used for fitting the model.
|
Self |
setShuffle(boolean shuffle)
If true, the model will shuffle the order of vertices before each epoch.
|
Self |
setStandardize(boolean standardize)
Whether to standardize the batch before passing them through a convolutional layer.
|
Self |
setVertexInputPropertyNames(java.util.List<java.lang.String> vertexInputPropertyNames)
Set the input features for the algorithm in the form of names of properties on the graph.
|
Self |
setVertexInputPropertyNames(java.lang.String... vertexInputPropertyNames)
Set the input features for the algorithm in the form of names of properties on the graph.
|
public abstract Model build() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic Self setBatchSize(int batchSize)
default: GraphWiseModelConfig.DEFAULT_BATCH_SIZE
batchSize - batch sizepublic Self setConvLayerConfigs(oracle.pgx.config.mllib.GraphWiseConvLayerConfig... layerConfigs)
GraphWiseConvLayerConfig).
default: GraphWiseModelConfig.DEFAULT_CONV_LAYER_CONFIGS
layerConfigs - layer configurationspublic Self setEmbeddingDim(int embeddingDim)
default: GraphWiseModelConfig.DEFAULT_EMBEDDING_DIM
embeddingDim - embedding dimensionpublic Self setLearningRate(double learningRate)
default: GraphWiseModelConfig.DEFAULT_LEARNING_RATE
learningRate - learning ratepublic Self setNumEpochs(int numEpochs)
default: GraphWiseModelConfig.DEFAULT_NUM_EPOCHS
numEpochs - number of epochspublic Self setSeed(java.lang.Integer seed)
default: GraphWiseModelConfig.DEFAULT_SEED
seed - random seedpublic Self setShuffle(boolean shuffle)
default: GraphWiseModelConfig.DEFAULT_SHUFFLE
shuffle - whether to shufflepublic Self setStandardize(boolean standardize)
default: GraphWiseModelConfig.DEFAULT_STANDARDIZE
standardize - whether to standardizepublic Self setVertexInputPropertyNames(java.util.List<java.lang.String> vertexInputPropertyNames)
Supported property types are given by GraphWiseModelConfig.SUPPORTED_INPUT_TYPES. Additionally, float and double vector properties are supported.
vertexInputPropertyNames - list of property namespublic Self setVertexInputPropertyNames(java.lang.String... vertexInputPropertyNames)
Supported graph property types are:
vertexInputPropertyNames - property names