lf, restore=False):</b>
          # This is the main training function that is called by APT_interface to start the training.
          # When restore is set to True, the training should restart from the last saved model.
          
          conf = self.conf
          self.model = self.create_model()          
          # Also create the optimizer and loss function as required. 
          
          <b>train_info_file = os.path.join(conf.cachedir,conf.trainfilename + '.json') </b>
          # train_info_fi