ServerAppComponentsΒΆ
- class ServerAppComponents(server: Server | None = None, config: ServerConfig | None = None, strategy: Strategy | None = None, client_manager: ClientManager | None = None)[source]ΒΆ
Bases:
object
Components to construct a ServerApp.
- Parameters:
server (Optional[Server] (default: None)) β A server implementation, either flwr.server.Server or a subclass thereof. If no instance is provided, one will be created internally.
config (Optional[ServerConfig] (default: None)) β Currently supported values are num_rounds (int, default: 1) and round_timeout in seconds (float, default: None).
strategy (Optional[Strategy] (default: None)) β An implementation of the abstract base class flwr.server.strategy.Strategy. If no strategy is provided, then flwr.server.strategy.FedAvg will be used.
client_manager (Optional[ClientManager] (default: None)) β An implementation of the class flwr.server.ClientManager. If no implementation is provided, then flwr.server.SimpleClientManager will be used.
Methods
Attributes
client_manager
config
server
strategy