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
sourceFeaturesVector<T>Features from the source node.
targetFeaturesVector<T>Features from the target node.
edgeFeaturesVector<T>Features from the edge (may be null).
Returns
- Vector<T>
The computed message.
Type Parameters
TThe numeric type used for calculations.