MedianFullModelAggregationStrategy<T, TInput, TOutput>
Models & Types · AiDotNet.FederatedLearning.Aggregators
Coordinate-wise median aggregation for IFullModel.
Inheritance: FederatedLearningComponentBase<T> → AggregationStrategyBase<IFullModel<T, TInput, TOutput>, T> → RobustFullModelAggregationStrategyBase<T, TInput, TOutput> → MedianFullModelAggregationStrategy<T, TInput, TOutput>
How It Works
For Beginners: For each model parameter, this strategy takes the middle value across clients. This makes the aggregation resistant to outliers (e.g., a client sending extremely large values).
Constructors
| Constructor | Summary |
|---|---|
MedianFullModelAggregationStrategy() |
Methods
| Method | Summary |
|---|---|
IFullModel<T, TInput, TOutput> Aggregate(Dictionary<int, IFullModel<T, TInput, TOutput>> clientModels, Dictionary<int, double> clientWeights) |
|
string GetStrategyName() |