-
Book Overview & Buying
-
Table Of Contents
Federated Learning with Python
By :
The communication handler functionalities are implemented in the communication_handler.py file, which can be found in the lib/util folder of the fl_main directory.
In this communication_handler.py code example, the handler imports general libraries such as websockets, asyncio, pickle, and logging:
import websockets, asyncio, pickle, logging
Next, we’ll provide a list of functions of the communication handler.
The following is a list of the functions related to the communication hander. Although the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) framework is not implemented in the communication handler code here for simplification, it is recommended to support them to secure communication among FL components all the time.
The init_db_server function is for starting the database...