Understanding what happens when the minimal example runs
Understanding the behavior of the entire FL system step by step will help you design applications with FL enabled and further enhance the FL system itself. Let us first look into what happens when we run just one agent by printing some procedures of the agent and aggregator modules.
Running just one minimal agent
Let’s run the minimal agent after running the database and aggregator servers and see what happens. When the agent is started with the minimal ML engine, you will see the following messages in the agent console:
# Agent-side Console Example INFO:root:--- This is a minimal example --- INFO:root:--- Agent initialized — INFO:root:--- Your IP is xxx.xxx.1.101 ---
When the agent initializes the model to be used for FL, it shows this message, and if you look at the state
file, it has entered the sending
state, which will trigger sending models to the aggregator when the FL client is started...