[Q&A] Return weights, as well as another metric from client during training (scatter_and_gather) #3395
-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
here is an example, you might be able to reference: fed average with earlier stopping. https://github.com/NVIDIA/NVFlare/blob/main/examples/hello-world/hello-fedavg/hello-fedavg.ipynb In these examples. you work with Data Structure is FLModel, instead of DXO ( DXO is used behind the scene). in each round you return the weight and metrics, the FedAvg controller will determine the stop condition based on metrics |
Beta Was this translation helpful? Give feedback.
here is an example, you might be able to reference: fed average with earlier stopping.
https://github.com/NVIDIA/NVFlare/blob/main/examples/hello-world/hello-fedavg/hello-fedavg.ipynb
or
with discussion in sel-paced learning tutorials: how to customized server side logics
https://github.com/NVIDIA/NVFlare/blob/main/examples/tutorials/self-paced-training/part-1_federated_learning_introduction/chapter-1_running_federated_learning_applications/01.3_server_side_customization/customize_server_logics.ipynb
In these examples. you work with Data Structure is FLModel, instead of DXO ( DXO is used behind the scene).
in each round you return the weight and metrics, the FedAvg controller will determi…