Table of Contents

Interface IFederatedHeterogeneityCorrection<T>

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Applies a heterogeneity correction transform to client updates in federated learning.

public interface IFederatedHeterogeneityCorrection<T>

Type Parameters

T

Numeric type.

Remarks

For Beginners: Some federated algorithms change how client updates are interpreted before the server aggregates them. This interface lets AiDotNet swap in different correction methods while keeping the public facade simple.

Methods

Correct(int, int, Vector<T>, Vector<T>, int)

Returns corrected client parameters to be used for aggregation.

Vector<T> Correct(int clientId, int roundNumber, Vector<T> globalParameters, Vector<T> localParameters, int localEpochs)

Parameters

clientId int

Client identifier.

roundNumber int

Round number (0-indexed).

globalParameters Vector<T>

Global parameter vector at the start of the round.

localParameters Vector<T>

Client-trained parameter vector.

localEpochs int

Local epochs used for training (proxy for local steps in simulation).

Returns

Vector<T>

Corrected parameters.

GetCorrectionName()

Gets the name of the correction method.

string GetCorrectionName()

Returns

string