          logger.info("Using configuration saved in state file")
  
      def update_changed_config_items(self, config_changeable_items):
          """ Update any parameters which are not fixed and have been changed """
          if not config_changeable_items:
              logger.debug("No changeable parameters have been updated")
              return
          for key, val in config_changeable_items.items():
 
</s> remove 
    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> add  </s> remove     def get_loss_functions(self, side, predict, mask):
 </s> add     def get_loss_functions(self, mask): </s> remove                  "of the image.\n"
                 )
 </s> add                  "of the image.\n")
    def update_legacy_config(self):
        """ Update legacy state config files with the new loss formating
        """
        prior = "dssim_loss"
        new = "loss_function"
        if prior not in self.config:
            return False
        self.config[new] = "ssim" if self.config[prior] else "mae"
        del self.config[prior]
        logger.info("Updated config from older dssim format. New config loss function: %s",
                    self.config[new])
        return True

          logger.info("Using configuration saved in state file")
  
    def update_legacy_config(self):
        """ Update legacy state config files with the new loss formating
        """
        prior = "dssim_loss"
        new = "loss_function"
        if prior not in self.config:
            return False
        self.config[new] = "ssim" if self.config[prior] else "mae"
        del self.config[prior]
        logger.info("Updated config from older dssim format. New config loss function: %s",
                    self.config[new])
        return True

      def update_changed_config_items(self, config_changeable_items):
          """ Update any parameters which are not fixed and have been changed """
          if not config_changeable_items:
              logger.debug("No changeable parameters have been updated")
              return
          for key, val in config_changeable_items.items():
keep add keep keep keep keep keep keep
 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