              if old_val == val:
                  continue
              self.config[key] = val
              logger.info("Config item: '%s' has been updated from '%s' to '%s'", key, old_val, val)
  
      def update_legacy_config(self):
          """ Update legacy state config files with the new loss formating
          """
          prior = "dssim_loss"
          new = "loss_function"
          if prior in self.config.keys() and new not in self.config.keys():
              self.config[new] = "ssim" if self.config[prior] is True else "mae"
              logger.debug("Updated config from older dssim format. New config loss function: %s",
                           self.config[new])
 
</s> remove             loss = Loss(side, model.outputs, mask_input, self.predict)
 </s> add             loss = Loss(model.outputs, mask_input) </s> remove     def get_loss_functions(self, side, predict, mask):
 </s> add     def get_loss_functions(self, mask):
              if old_val == val:
                  continue
              self.config[key] = val
              logger.info("Config item: '%s' has been updated from '%s' to '%s'", key, old_val, val)










keep keep keep keep replace replace replace replace replace replace replace replace replace replace
 Post PR Fixups

- train/_config.py: PEP8 Fixes. Slight description change on coverage
- models/_base.py:
   - Remove unused variables from Loss()
   - Delete legacy config items from state file
   - Save state file on Legacy update
   - PEP8
- Remove _defaults.py for models with no config options 
plugins/train/model/_base.py