Package oracle.pgx.api.mllib
Class GraphWiseAttentionLayerConfigBuilder
- java.lang.Object
-
- oracle.pgx.api.mllib.GraphWiseBaseConvLayerConfigBuilder<GraphWiseAttentionLayerConfig,GraphWiseAttentionLayerConfigBuilder>
-
- oracle.pgx.api.mllib.GraphWiseAttentionLayerConfigBuilder
-
public class GraphWiseAttentionLayerConfigBuilder extends GraphWiseBaseConvLayerConfigBuilder<GraphWiseAttentionLayerConfig,GraphWiseAttentionLayerConfigBuilder>
Builder forGraphWiseAttentionLayerConfig
.- Since:
- 23.3
-
-
Constructor Summary
Constructors Constructor Description GraphWiseAttentionLayerConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphWiseAttentionLayerConfig
build()
Build the configurationGraphWiseAttentionLayerConfigBuilder
setHeadAggregation(AggregationOperation aggregationOperation)
Set the aggregation operation for this layer (seeAggregationOperation
)GraphWiseAttentionLayerConfigBuilder
setNumHeads(int numHeads)
Set the number of heads that will be used in this layer.-
Methods inherited from class oracle.pgx.api.mllib.GraphWiseBaseConvLayerConfigBuilder
setActivationFunction, setDropoutRate, setNumSampledNeighbors, setWeightInitScheme, useEdgeToEdgeConnection, useEdgeToVertexConnection, useVertexToEdgeConnection, useVertexToVertexConnection
-
-
-
-
Method Detail
-
setNumHeads
public GraphWiseAttentionLayerConfigBuilder setNumHeads(int numHeads)
Set the number of heads that will be used in this layer.- Parameters:
numHeads
- number of heads to use- Returns:
- this
- Since:
- 23.3
-
setHeadAggregation
public GraphWiseAttentionLayerConfigBuilder setHeadAggregation(AggregationOperation aggregationOperation)
Set the aggregation operation for this layer (seeAggregationOperation
)default:
GraphWiseAttentionLayerConfig.DEFAULT_AGGREGATION_OPERATION
- Parameters:
aggregationOperation
- aggregation operation- Returns:
- this
- Since:
- 23.3
-
build
public GraphWiseAttentionLayerConfig build()
Build the configuration- Returns:
- built configuration
- Since:
- 23.3
-
-