fl_sim.nodes#

Node s are the core of the simulation framework. Node has two subclasses: Server and Client. The Server class is the base class for all servers, which acts as the coordinator of the training process, as well as maintainer of status variables. The Client class is the base class for all clients.

Base Node class#

Node()

An abstract base class for the server and client nodes.

Server classes#

Server(model, dataset, config, client_config)

The class to simulate the server node.

ServerConfig(algorithm, num_iters, ...[, ...])

Configs for the Server.

Client classes#

Client(client_id, device, model, dataset, config)

The class to simulate the client node.

ClientConfig(algorithm, optimizer, ...[, ...])

Configs for the Client.