                          choices=params["choices"],
                          is_radio=params["gui_radio"],
                          rounding=params["rounding"],
                          min_max=params["min_max"],
                          helptext=params["helptext"])
          logger.debug("Formatted Config for GUI: %s", retval)
          return retval
  
 
</s> remove         if not self._is_predict:
            self._state.add_session_loss_names(self._loss.names)
 </s> add         self._state.add_session_loss_names(self._loss.names) </s> remove         """ Handle the config """
        logger.debug("Handling config")
 </s> add         """ Handle the config.

        Checks whether a config file exists for this section. If not then a default is created.

        Configuration choices are then loaded and validated
        """
        logger.debug("Handling config: (section: %s, configfile: '%s')",
                     self.section, self.configfile) </s> remove         """ Return a config item in it's correct format """
 </s> add         """ Return a config item in it's correct format.

        Parameters
        ----------
        section: str
            The configuration section currently being processed
        option: str
            The configuration option currently being processed

        Returns
        -------
        varies
            The selected configuration option in the correct data format
        """
                        is_multi_option=params["type"] == list,
                          choices=params["choices"],
                          is_radio=params["gui_radio"],
                        is_multi_option=params["type"] == list,
                          rounding=params["rounding"],
                          min_max=params["min_max"],
                          helptext=params["helptext"])
          logger.debug("Formatted Config for GUI: %s", retval)
          return retval
  
keep add keep keep keep keep keep keep
 scripts.train - Add freeze weights option
lib.config:
  - Better formatting for .ini files
  - Support multi-select options
gui - Add support for multi-select config items 
lib/gui/popup_configure.py