SubgraphFederatedTrainer<T>

Models & Types · AiDotNet.FederatedLearning.Graph

Main coordinator for subgraph-level federated GNN training.

Inheritance: FederatedLearningComponentBase<T> → SubgraphFederatedTrainer<T>

Implements: IFederatedGraphTrainer<T>

For Beginners

This class orchestrates graph FL end-to-end:

How It Works

Pseudo-node expansion: Before local training, each client’s subgraph is expanded with pseudo-nodes that approximate missing cross-client neighbors. The strategy (FeatureAverage, GeneratorBased, ZeroFill) is controlled by FederatedGraphOptions.

Constructors

Constructor Summary
SubgraphFederatedTrainer(FederatedGraphOptions options, IGraphAggregationStrategy<T> aggregationStrategy, ICrossClientEdgeHandler<T> edgeHandler) Initializes a new instance of SubgraphFederatedTrainer.

Properties

Property Summary
int ClientCount { get; }

Methods

Method Summary
Tensor<T> ExecuteRound(int roundNumber)
Tensor<T> GetGlobalModel()
void DiscoverCrossClientEdges()
void RegisterSubgraph(int clientId, Tensor<T> adjacency, Tensor<T> nodeFeatures, Tensor<T> nodeLabels)