5.1.1.6.1.2. FedEval.role.Server

5.1.1.6.1.2.1. Module Contents

5.1.1.6.1.2.1.1. Classes

Server

a central server implementation based on FlaskNode.

class FedEval.role.Server.Server

Bases: FedEval.role.node.Node

a central server implementation based on FlaskNode.

property log_dir
_construct_fed_model()

Construct a federated model according to self.model_config and bind it to self.fed_model. This method only works after self._bind_configs().

_init_logger()
_init_metric_states()
_init_statistical_states()

initialize statistics.

_init_control_states()

initilize attributes for controlling.

_init_states()
_init_val_and_test_data()
_refresh_update_cache() None
_refresh_evaluation_cache() None
_get_recent_time_records(recent_num: int = 0) List
__get_avg_test_metric_keys() List[str]
__get_avg_val_metric_keys() List[str]
__get_cur_used_time() str
_register_services()
aggregate_train_loss(client_losses, client_sizes, cur_round)
_get_strategy_description()
snapshot_result(cur_time: float) Mapping[str, Any]
_register_handles()
process_update()
server_evaluation()
process_evaluate()
train_next_round()
distribute_evaluate(eval_best_model=False)
start()

start to provide services.