      cli_opts: :class:`lib.gui.options.CliOpts`
          The command line options object
      statusbar: :class:`lib.gui.custom_widgets.StatusBar`
          The GUI Status bar
      session: :class:`lib.gui.stats.Session`
          The current training Session
      """
      def __init__(self, root, cli_opts, statusbar, session):
          logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s, session: %s)",
                       self.__class__.__name__, root, cli_opts, statusbar, session)
          self._default_font = self._set_default_font()
 
</s> remove     def __init__(self, root, cli_opts, statusbar, session):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s, session: %s)",
                     self.__class__.__name__, root, cli_opts, statusbar, session)
 </s> add     def __init__(self, root, cli_opts, statusbar):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s)",
                     self.__class__.__name__, root, cli_opts, statusbar) </s> remove     session: :class:`lib.gui.stats.Session`
        The current training Session
 </s> add  </s> remove                  "statusbar: %s, session: %s)", root, cli_opts, statusbar, session)
    _CONFIG = Config(root, cli_opts, statusbar, session)
 </s> add                  "statusbar: %s)", root, cli_opts, statusbar)
    _CONFIG = Config(root, cli_opts, statusbar) </s> remove     @property
    def loss_keys(self):
        """ list: The loss keys for the current session, or loss keys for all sessions. """
        if self.session_id is None:
            retval = self._total_loss_keys
        else:
            retval = self.session["loss_names"]
        return retval
 </s> add     Parameters
    ----------
    session: :class:`GlobalSession`
        The loaded or currently training session
    """
    def __init__(self, session):
        logger.debug("Initializing %s: (session: %s)", self.__class__.__name__, session)
        self._session = session
        self._state = session._state </s> remove def initialize_config(root, cli_opts, statusbar, session):
 </s> add def initialize_config(root, cli_opts, statusbar):
      cli_opts: :class:`lib.gui.options.CliOpts`
          The command line options object
      statusbar: :class:`lib.gui.custom_widgets.StatusBar`
          The GUI Status bar


      """
      def __init__(self, root, cli_opts, statusbar, session):
          logger.debug("Initializing %s: (root %s, cli_opts: %s, statusbar: %s, session: %s)",
                       self.__class__.__name__, root, cli_opts, statusbar, session)
          self._default_font = self._set_default_font()
keep keep keep keep replace replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/utils.py