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
TNumeric 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
clientIdintClient identifier.
roundNumberintRound number (0-indexed).
globalParametersVector<T>Global parameter vector at the start of the round.
localParametersVector<T>Client-trained parameter vector.
localEpochsintLocal 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()