示例#1
0
 def configure(self):
     """Prepare this client for training."""
     self.trainer = trainers_registry.get(self.client_id, self.model)
     self.algorithm = algorithms_registry.get(self.trainer, self.client_id)
示例#2
0
 def load_trainer(self):
     """Setting up the global model to be trained via federated learning."""
     self.trainer = trainers_registry.get(model=self.model)
     self.algorithm = algorithms_registry.get(self.trainer)