This example showcases Federated Averaging (FedAvg) with NumPy.
NOTE: This example uses a NumPy-based trainer and will generate its data within the code.
You can follow the Getting Started with NVFlare (NumPy) for a detailed walkthrough of the basic concepts.
See the Hello FedAvg with NumPy example documentation page for details on this example.
To run this example with the FLARE API, you can follow the hello_world notebook, or you can quickly get started with the following:
Follow the Installation instructions.
Run the script using the job API to create the job and run it with the simulator:
python3 fedavg_script_runner_hello-numpy.py
You can find the running logs and results inside the simulator's workspace:
$ ls /tmp/nvflare/jobs/workdir/
For how to use the FLARE API to run this app, see this notebook.