Serverยถ

class Server(*, client_manager: ClientManager, strategy: Strategy | None = None)[์†Œ์Šค]ยถ

๊ธฐ๋ฐ˜ ํด๋ž˜์Šค: object

Flower ์„œ๋ฒ„.

๋ฉ”์†Œ๋“œ

client_manager()

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.

disconnect_all_clients(timeout: float | None) None[์†Œ์Šค]ยถ

Send shutdown signal to all clients.

evaluate_round(server_round: int, timeout: float | None) tuple[float | None, dict[str, bool | bytes | float | int | str], tuple[list[tuple[ClientProxy, EvaluateRes]], list[tuple[ClientProxy, EvaluateRes] | BaseException]]] | None[์†Œ์Šค]ยถ

Validate current global model on a number of clients.

fit(num_rounds: int, timeout: float | None) tuple[History, float][์†Œ์Šค]ยถ

Run federated averaging for a number of rounds.

fit_round(server_round: int, timeout: float | None) tuple[Parameters | None, dict[str, bool | bytes | float | int | str], tuple[list[tuple[ClientProxy, FitRes]], list[tuple[ClientProxy, FitRes] | BaseException]]] | None[์†Œ์Šค]ยถ

Perform a single round of federated averaging.

set_max_workers(max_workers: int | None) None[์†Œ์Šค]ยถ

Set the max_workers used by ThreadPoolExecutor.

set_strategy(strategy: Strategy) None[์†Œ์Šค]ยถ

Replace server strategy.