public abstract class WiseModelBuilder<Config extends GraphWiseBaseModelConfig,Self extends WiseModelBuilder>
extends java.lang.Object
SupervisedGraphWiseModelBuilder instead of this.| Constructor and Description |
|---|
WiseModelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Self |
setBatchSize(int batchSize)
Set the batch size.
|
Self |
setConvLayerConfigs(GraphWiseBaseConvLayerConfig... layerConfigs)
Set the convolutional layer configurations (See
GraphWiseConvLayerConfig
and GraphWiseAttentionLayerConfig). |
Self |
setEdgeInputPropertyConfigs(InputPropertyConfig... propertyConfigs)
Set edge input property configs.
|
Self |
setEdgeInputPropertyNames(java.util.List<java.lang.String> edgeInputPropertyNames)
Set the edge input features for the algorithm in the form of names of properties on the graph.
|
Self |
setEdgeInputPropertyNames(java.lang.String... edgeInputPropertyNames)
Set the edges input features for the algorithm in the form of names of properties on the graph.
|
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 |
setNormalize(boolean normalize)
Whether to l2 normalize the output of the convolutional layers.
|
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 |
setVertexInputPropertyConfigs(InputPropertyConfig... propertyConfigs)
Set vertex input property configs.
|
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.
|
Self |
setWeightDecay(double weightDecay)
Set the weight decay used for the Adam optimizer
|
public Self setBatchSize(int batchSize)
batchSize - batch sizepublic Self setConvLayerConfigs(GraphWiseBaseConvLayerConfig... layerConfigs)
GraphWiseConvLayerConfig
and GraphWiseAttentionLayerConfig).
default: GraphWiseBaseModelConfig.DEFAULT_CONV_LAYER_CONFIGS
layerConfigs - layer configurationspublic Self setEdgeInputPropertyConfigs(InputPropertyConfig... propertyConfigs)
Currently only string properties are supported for input property configs.
propertyConfigs - list of property configspublic Self setEdgeInputPropertyNames(java.util.List<java.lang.String> edgeInputPropertyNames)
Supported property types are given by GraphWiseBaseModelConfig.SUPPORTED_INPUT_TYPES.
Additionally, float and double vector properties are supported.
edgeInputPropertyNames - list of property namespublic Self setEdgeInputPropertyNames(java.lang.String... edgeInputPropertyNames)
Supported graph property types are:
edgeInputPropertyNames - property namespublic Self setEmbeddingDim(int embeddingDim)
embeddingDim - embedding dimensionpublic Self setLearningRate(double learningRate)
learningRate - learning ratepublic Self setNormalize(boolean normalize)
normalize - whether to normalizepublic Self setNumEpochs(int numEpochs)
numEpochs - number of epochspublic Self setSeed(java.lang.Integer seed)
seed - random seedpublic Self setShuffle(boolean shuffle)
shuffle - whether to shufflepublic Self setStandardize(boolean standardize)
standardize - whether to standardizepublic Self setVertexInputPropertyConfigs(InputPropertyConfig... propertyConfigs)
Currently only string properties are supported for input property configs.
propertyConfigs - list of property configspublic Self setVertexInputPropertyNames(java.util.List<java.lang.String> vertexInputPropertyNames)
Supported property types are given by GraphWiseBaseModelConfig.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 namespublic Self setWeightDecay(double weightDecay)
weightDecay - weight decay