          """ Add the info bar """
          logger.debug("Adding options info")
          lblinfo = ttk.Label(self.optsframe,
                              textvariable=self.vars["info"],
                              anchor=tk.W,
                              width=70)
          lblinfo.pack(side=tk.LEFT, padx=5, pady=5, anchor=tk.W)
  
      def set_info(self, msg):
          """ Set the info message """
          logger.debug("Setting info: %s", msg)
          self.vars["info"].set(msg)
 
</s> remove         """ Set the summary data and info message """
 </s> add         """ Set the summary data and info message.

        Parameters
        ----------
        message: str
            The information message to set
        """ </s> remove                                            args=(self._session, ),
 </s> add                                            args=(Session, ), </s> remove     def add_option_smoothing(self):
        """ Add refresh button to refresh graph immediately """
 </s> add     def _add_option_raw(self):
        """ Add check-button to hide/display raw data """
        logger.debug("Adding display raw option")
        tk_var = self.vars["raw_data"]
        chkbtn = ttk.Checkbutton(
            self.optsframe,
            variable=tk_var,
            text="Raw",
            command=lambda v=tk_var: self._display_data_callback("raw", v))
        chkbtn.pack(side=tk.RIGHT, padx=5, anchor=tk.W)
        Tooltip(chkbtn, text="Display the raw loss data", wraplength=200)

    def _add_option_smoothed(self):
        """ Add check-button to hide/display smoothed data """
        logger.debug("Adding display smoothed option")
        tk_var = self.vars["smooth_data"]
        chkbtn = ttk.Checkbutton(
            self.optsframe,
            variable=tk_var,
            text="Smoothed",
            command=lambda v=tk_var: self._display_data_callback("smoothed", v))
        chkbtn.pack(side=tk.RIGHT, padx=5, anchor=tk.W)
        Tooltip(chkbtn, text="Display the smoothed loss data", wraplength=200)

    def _add_option_smoothing(self):
        """ Add a slider to adjust the smoothing amount """ </s> remove         lbl = ttk.Label(self.sub_frame, text="Session Stats", anchor=tk.CENTER)
 </s> add         lbl = ttk.Label(self._sub_frame, text="Session Stats", anchor=tk.CENTER) </s> remove     def add_label(self):
        """ Add tree-view Title """
 </s> add     def _add_label(self):
        """ Add the title above the tree-view. """
                            anchor=tk.W)
        lblinfo.pack(side=tk.LEFT, expand=True, padx=5, pady=5, anchor=tk.W)
          """ Add the info bar """
          logger.debug("Adding options info")
          lblinfo = ttk.Label(self.optsframe,
                              textvariable=self.vars["info"],
                            anchor=tk.W)
        lblinfo.pack(side=tk.LEFT, expand=True, padx=5, pady=5, anchor=tk.W)
                            anchor=tk.W)
        lblinfo.pack(side=tk.LEFT, expand=True, padx=5, pady=5, anchor=tk.W)
                            anchor=tk.W)
        lblinfo.pack(side=tk.LEFT, expand=True, padx=5, pady=5, anchor=tk.W)
  
      def set_info(self, msg):
          """ Set the info message """
          logger.debug("Setting info: %s", msg)
          self.vars["info"].set(msg)
keep keep keep keep replace 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/display_page.py