Federated Learning with Python by Kiyoshi Nakayama PhD George Jeno

Federated Learning with Python by Kiyoshi Nakayama PhD George Jeno

Author:Kiyoshi Nakayama, PhD, George Jeno
Language: eng
Format: epub
Publisher: Packt Publishing Pvt. Ltd.
Published: 2022-10-19T00:00:00+00:00


Configuring the FL system with JSON files for each component

First, edit the configuration JSON files in the setups folder of the provided GitHub repository. These JSON files are read by a database server, aggregator, and agents to configure their initial setups. Again, the configuration details are explained as follows.

config_db.json

The config_db.json file deals with configuring a database server. Use the following information to properly operate the server:

db_ip: The database server’s IP address (for example, localhost). If you want to run the database server on a cloud instance, such as an Amazon Web Services (AWS) EC2 instance, you can specify the private IP address of the instance.

db_socket: The socket number used between the database and aggregator (for example, 9017).

db_name: The name of the SQLite database (for example, sample_data).

db_data_path: The path to the SQLite database (for example, ./db).

db_model_path: The path to the directory to save all Machine Learning (ML) models (for example, ./db/models).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.