      # pylint: disable=too-many-statements
      def set_defaults(self):
          """ Set the default values for config """
          logger.debug("Setting defaults")
          self.set_globals()
          current_dir = os.path.dirname(__file__)
          for dirpath, _, filenames in os.walk(current_dir):
              default_files = [fname for fname in filenames if fname.endswith("_defaults.py")]
              if not default_files:
                  continue
 
</s> remove         for sect in ("global", self.section):
 </s> add         sections = [sect for sect in self.config.sections() if sect.startswith("global")]
        sections.append(self.section)
        for sect in sections: </s> remove     def set_globals(self):
        """
        Set the global options for training

        Loss Documentation
        MAE https://heartbeat.fritz.ai/5-regression-loss-functions-all-machine
            -learners-should-know-4fb140e9d4b0
        MSE https://heartbeat.fritz.ai/5-regression-loss-functions-all-machine
            -learners-should-know-4fb140e9d4b0
        LogCosh https://heartbeat.fritz.ai/5-regression-loss-functions-all-machine
                -learners-should-know-4fb140e9d4b0
        Smooth L1 https://arxiv.org/pdf/1701.03077.pdf
        L_inf_norm https://medium.com/@montjoile/l0-norm-l1-norm-l2-norm-l-infinity
                   -norm-7a7d18a4f40c
        SSIM http://www.cns.nyu.edu/pub/eero/wang03-reprint.pdf
        GMSD https://arxiv.org/ftp/arxiv/papers/1308/1308.3052.pdf
        """
 </s> add     def _set_globals(self):
        """ Set the global options for training """ </s> remove     @property
    def _selected_mask_loss(self):
        """ :func:`keras.losses.Loss`: The selected mask loss function. Currently returns mean
        standard error as the default function. """
        loss_func = self._loss_dict["mse"]
        logger.debug("loss_func: %s", loss_func)
        return loss_func

 </s> add  </s> remove         selected_loss = self._loss_dict[self._config.get("loss_function", "mae")]
 </s> add         selected_loss = self._loss_dict[self._config["loss_function"]]
        mask_loss = self._loss_dict[self._config["mask_loss_function"]]
        self._set_globals()
        self._set_loss()
      # pylint: disable=too-many-statements
      def set_defaults(self):
          """ Set the default values for config """
          logger.debug("Setting defaults")
        self._set_globals()
        self._set_loss()
          current_dir = os.path.dirname(__file__)
          for dirpath, _, filenames in os.walk(current_dir):
              default_files = [fname for fname in filenames if fname.endswith("_defaults.py")]
              if not default_files:
                  continue
keep keep keep keep replace keep keep keep keep keep
 Training Config - Split Loss to it's own section 
plugins/train/_config.py