Server#
- class Server(*, client_manager: ClientManager, strategy: Strategy | None = None)[소스]#
기반 클래스:
object
Flower 서버.
메소드
Return ClientManager.
disconnect_all_clients
(timeout)Send shutdown signal to all clients.
evaluate_round
(server_round, timeout)Validate current global model on a number of clients.
fit
(num_rounds, timeout)Run federated averaging for a number of rounds.
fit_round
(server_round, timeout)Perform a single round of federated averaging.
set_max_workers
(max_workers)Set the max_workers used by ThreadPoolExecutor.
set_strategy
(strategy)Replace server strategy.
- client_manager() ClientManager [소스]#
Return ClientManager.
- evaluate_round(server_round: int, timeout: float | None) tuple[Optional[float], dict[str, Union[bool, bytes, float, int, str]], tuple[list[tuple[flwr.server.client_proxy.ClientProxy, flwr.common.typing.EvaluateRes]], list[Union[tuple[flwr.server.client_proxy.ClientProxy, flwr.common.typing.EvaluateRes], BaseException]]]] | None [소스]#
Validate current global model on a number of clients.
- fit(num_rounds: int, timeout: float | None) tuple[flwr.server.history.History, float] [소스]#
Run federated averaging for a number of rounds.
- fit_round(server_round: int, timeout: float | None) tuple[Optional[flwr.common.typing.Parameters], dict[str, Union[bool, bytes, float, int, str]], tuple[list[tuple[flwr.server.client_proxy.ClientProxy, flwr.common.typing.FitRes]], list[Union[tuple[flwr.server.client_proxy.ClientProxy, flwr.common.typing.FitRes], BaseException]]]] | None [소스]#
Perform a single round of federated averaging.