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 |
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
.
Note that if this is the last layer, this setting will be ignored and replaced by the activation function of the loss function, e.g softmax or sigmoid.
default: GraphWisePredictionLayerConfig.DEFAULT_ACTIVATION_FUNCTION
activationFunction
- activation functionpublic GraphWisePredictionLayerConfigBuilder setHiddenDimension(java.lang.Integer hiddenDimension)
Note that if this is the last layer, this setting will be ignored and replaced by the number of classes
default: GraphWisePredictionLayerConfig.DEFAULT_HIDDEN_DIMENSION
hiddenDimension
- hidden dimensionpublic GraphWisePredictionLayerConfigBuilder setWeightInitScheme(WeightInitScheme weightInitScheme)
WeightInitScheme
.
default: GraphWisePredictionLayerConfig.DEFAULT_WEIGHT_INIT_SCHEME
weightInitScheme
- weight initialization scheme