ServerAppComponents#
- class ServerAppComponents(server: Server | None = None, config: ServerConfig | None = None, strategy: Strategy | None = None, client_manager: ClientManager | None = None)[源代码]#
基类:
object
Components to construct a ServerApp.
- 参数:
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)) -- 目前支持的值有:`num_rounds`(int,默认值:1)和以秒为单位的`round_timeout`(float,默认值:无)。
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