MCPcopy Index your code
hub / github.com/FedML-AI/FedML / __init__

Method __init__

python/fedml/core/alg_frame/server_aggregator.py:16–26  ·  view source on GitHub ↗
(self, model, args)

Source from the content-addressed store, hash-verified

14 """Abstract base class for federated learning trainer."""
15
16 def __init__(self, model, args):
17 self.model = model
18 self.id = 0
19 self.args = args
20 FedMLAttacker.get_instance().init(args)
21 FedMLDefender.get_instance().init(args)
22 FedMLDifferentialPrivacy.get_instance().init(args)
23 self.contribution_assessor_mgr = ContributionAssessorManager(args)
24 self.final_contribution_assigment_dict = dict()
25
26 self.eval_data = None
27
28 def is_main_process(self):
29 return True

Callers

nothing calls this directly

Calls 3

initMethod · 0.65
get_instanceMethod · 0.45

Tested by

no test coverage detected