public class GraphWiseAttentionLayerConfigBuilder extends GraphWiseBaseConvLayerConfigBuilder<GraphWiseAttentionLayerConfig,GraphWiseAttentionLayerConfigBuilder>
GraphWiseAttentionLayerConfig
.Constructor and Description |
---|
GraphWiseAttentionLayerConfigBuilder() |
Modifier and Type | Method and Description |
---|---|
GraphWiseAttentionLayerConfig |
build()
Build the configuration
|
GraphWiseAttentionLayerConfigBuilder |
setHeadAggregation(AggregationOperation aggregationOperation)
Set the aggregation operation for this layer (see
AggregationOperation ) |
GraphWiseAttentionLayerConfigBuilder |
setNumHeads(int numHeads)
Set the number of heads that will be used in this layer.
|
setActivationFunction, setDropoutRate, setNumSampledNeighbors, setWeightInitScheme, useEdgeToEdgeConnection, useEdgeToVertexConnection, useVertexToEdgeConnection, useVertexToVertexConnection
public GraphWiseAttentionLayerConfigBuilder()
public GraphWiseAttentionLayerConfig build()
public GraphWiseAttentionLayerConfigBuilder setHeadAggregation(AggregationOperation aggregationOperation)
AggregationOperation
)
default: GraphWiseAttentionLayerConfig.DEFAULT_AGGREGATION_OPERATION
aggregationOperation
- aggregation operationpublic GraphWiseAttentionLayerConfigBuilder setNumHeads(int numHeads)
numHeads
- number of heads to use