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)
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)