GraphAttentionNetworkOptions

Options & Configuration · AiDotNet.NeuralNetworks.Options

Configuration options for the GraphAttentionNetwork.

Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → GraphEncoderOptions → GraphAttentionNetworkOptions

For Beginners

The Graph Attention Network lets each node decide which of its neighbours matter most, instead of treating them all equally. The values here are the ones the paper publishes, so you can use the model without configuring anything.

Constructors

Constructor Summary
GraphAttentionNetworkOptions() Initializes a new instance carrying the model’s published defaults.
GraphAttentionNetworkOptions(GraphAttentionNetworkOptions other) Initializes a new instance by copying another instance.

Properties

Property Summary
double DropoutRate { get; set; } Gets or sets the dropout rate.
int HiddenSize { get; set; } Gets or sets the width of each hidden layer after its heads are concatenated.
int NumHeads { get; set; } Gets or sets the number of attention heads.

Methods

Method Summary
void Validate() Throws if a value this model requires has been left unset or is not positive.