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.
- Paramètres:
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