          self._add_buttons()
          logger.debug("Initialized: %s", self.__class__.__name__)
  
      def _add_buttons(self):
          """ Add the option buttons """
          for btntype in ("clear", "save", "load"):
              logger.debug("Adding button: '%s'", btntype)
              cmd = getattr(self._parent, "_{}_session".format(btntype))
              btn = ttk.Button(self._parent.optsframe,
                               image=get_images().icons[btntype],
 
</s> remove         self._add_buttons()
 </s> add         self._buttons = self._add_buttons()
        self._add_training_callback() </s> remove     def _set_help(cls, btntype):
        """ Set the help text for option buttons """
 </s> add     def _set_help(cls, button_type):
        """ Set the help text for option buttons.

        Parameters
        ----------
        button_type: {"reload", "clear", "save", "load"}
            The type of button to set the help text for
        """ </s> remove     def add_label(self):
        """ Add tree-view Title """
 </s> add     def _add_label(self):
        """ Add the title above the tree-view. """ </s> remove         if btntype == "reload":
 </s> add         if button_type == "reload":
        """ Add the option buttons.

        Returns
        -------
        dict
            The button names to button objects
        """
        buttons = dict()
          self._add_buttons()
          logger.debug("Initialized: %s", self.__class__.__name__)
  
      def _add_buttons(self):
        """ Add the option buttons.

        Returns
        -------
        dict
            The button names to button objects
        """
        buttons = dict()
          for btntype in ("clear", "save", "load"):
              logger.debug("Adding button: '%s'", btntype)
              cmd = getattr(self._parent, "_{}_session".format(btntype))
              btn = ttk.Button(self._parent.optsframe,
                               image=get_images().icons[btntype],
keep keep keep keep 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/display_analysis.py