Skip to content

Commit

Permalink
Create FederatedAveraging.md (#471)
Browse files Browse the repository at this point in the history
* Create FederatedAveraging.md
  • Loading branch information
mollyk authored Dec 11, 2023
1 parent 4de25db commit 2dab60a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions documentation/algorithms/FederatedAveraging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Federated Averaging

#### Some General Remarks

The general architecture of Exareme 2 follows a Master/Worker paradigm where many Workers
, operating in multiple locations, are coordinated by one Master. Only Workers
are allowed access to the anonymized data in each location and the Master only
sees aggregate data, derived from the full data and sent to him by the Workers.

Our naming convention is that procedures run on Workers are given the adjective _local_
whereas those running on Master are called _global_.

In this premise, we implement federated averaging by building the models locally, using
state-of-the-art Python libraries, such as scikit learn and then averaging the parameters
on the global node.

#### Algorithm Description

This algorithm aggregates the parameters of the local models and returns their average.

<b><h4>Algorithm Implementation</b></h4>

[FedAvg](../../exareme2/algorithms/in_database/fedaverage.py)

0 comments on commit 2dab60a

Please sign in to comment.