Table of Contents

Delegate MessageFunction<T>

Namespace
AiDotNet.NeuralNetworks.Layers
Assembly
AiDotNet.dll

Defines the message function type for message passing neural networks.

public delegate Vector<T> MessageFunction<T>(Vector<T> sourceFeatures, Vector<T> targetFeatures, Vector<T>? edgeFeatures)

Parameters

sourceFeatures Vector<T>

Features from the source node.

targetFeatures Vector<T>

Features from the target node.

edgeFeatures Vector<T>

Features from the edge (may be null).

Returns

Vector<T>

The computed message.

Type Parameters

T

The numeric type used for calculations.