public class GraphWisePredictionLayerConfigBuilder
extends java.lang.Object
GraphWisePredictionLayerConfig
.Constructor and Description |
---|
GraphWisePredictionLayerConfigBuilder() |
Modifier and Type | Method and Description |
---|---|
GraphWisePredictionLayerConfig |
build()
Build the configuration
|
GraphWisePredictionLayerConfigBuilder |
setActivationFunction(ActivationFunction activationFunction)
Set the activation function of the layer.
|
GraphWisePredictionLayerConfigBuilder |
setDropoutRate(double dropoutRate)
Set the dropout rate for this layer.
|
GraphWisePredictionLayerConfigBuilder |
setHiddenDimension(java.lang.Integer hiddenDimension)
Set the hidden dimension of the layer.
|
GraphWisePredictionLayerConfigBuilder |
setWeightInitScheme(WeightInitScheme weightInitScheme)
Sets the weight initialization scheme for the weights of the layer.
|
public GraphWisePredictionLayerConfigBuilder()
public GraphWisePredictionLayerConfig build()
public GraphWisePredictionLayerConfigBuilder setActivationFunction(ActivationFunction activationFunction)
ActivationFunction
.
default: GraphWisePredictionLayerConfig.DEFAULT_ACTIVATION_FUNCTION
activationFunction
- activation functionpublic GraphWisePredictionLayerConfigBuilder setDropoutRate(double dropoutRate)
Note that if it is the last layer, this setting will be ignored and dropout will not be applied
default: GraphWisePredictionLayerConfig.DEFAULT_DROPOUT_RATE
dropoutRate
- dropout ratepublic GraphWisePredictionLayerConfigBuilder setHiddenDimension(java.lang.Integer hiddenDimension)
default: GraphWisePredictionLayerConfig.DEFAULT_HIDDEN_DIMENSION
hiddenDimension
- hidden dimensionpublic GraphWisePredictionLayerConfigBuilder setWeightInitScheme(WeightInitScheme weightInitScheme)
WeightInitScheme
.
default: GraphWisePredictionLayerConfig.DEFAULT_WEIGHT_INIT_SCHEME
weightInitScheme
- weight initialization scheme