Running the FL server
Here is an example of running the FL server. In order to run the FL server, you will just execute the following code:
if __name__ == "__main__": Â Â Â Â s = Server() Â Â Â Â init_fl_server(s.register, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â s.receive_msg_from_agent, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â s.model_synthesis_routine(), Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â s.aggr_ip, s.reg_socket, s.recv_socket)
The register
, receive_msg_from_agnet
, and model_synthesis_routine
functions of the instance of the FL server are for starting the registration process of the agents, receiving messages from the agents, and starting the model synthesis process to create a global model, which are all started...