(self, model, args)
| 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 |
nothing calls this directly
no test coverage detected