      def _set_help(cls, btntype):
          """ Set the help text for option buttons """
          logger.debug("Setting help")
          hlp = ""
          if btntype == "reload":
              hlp = "Load/Refresh stats for the currently training session"
          elif btntype == "clear":
              hlp = "Clear currently displayed session stats"
          elif btntype == "save":
              hlp = "Save session stats to csv"
 
</s> remove         elif btntype == "clear":
 </s> add         elif button_type == "clear": </s> remove         elif btntype == "save":
 </s> add         elif button_type == "save": </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         elif btntype == "load":
 </s> add         elif button_type == "load":
        if button_type == "reload":
      def _set_help(cls, btntype):
          """ Set the help text for option buttons """
          logger.debug("Setting help")
          hlp = ""
        if button_type == "reload":
              hlp = "Load/Refresh stats for the currently training session"
          elif btntype == "clear":
              hlp = "Clear currently displayed session stats"
          elif btntype == "save":
              hlp = "Save session stats to csv"
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