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)) – 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.

메소드

속성

client_manager

config

server

strategy