code: def set_up_phase(self, training_info, model, source: Source):
          
          self._optimizer_instance = self.optimizer_factory.instantiate(model)
          self._source = source
docs: Prepare the phase for learning