                  logger.debug("Loaded state: %s", state)
          except IOError as err:
              logger.warning("Unable to load state file. Graphing disabled: %s", str(err))
  
  
  class SessionsSummary():
      """ Calculations for analysis summary stats """
  
 
</s> remove         logger.debug("Initializing %s", self.__class__.__name__)
 </s> add         logger.debug("Initializing %s, model_dir: %s, model_name: %s)",
                     self.__class__.__name__, model_dir, model_name) </s> remove                                 "iterations": len(timestamps)}
 </s> add                                 "datapoints": len(timestamps)} </s> remove                              "iterations": ts_data["iterations"]})
 </s> add                              "iterations": iterations}) </s> remove                              "rate": (batchsize * ts_data["iterations"]) / elapsed,
 </s> add                              "rate": (batchsize * iterations) / elapsed,
    def get_iterations_for_session(self, session_id):
        """ Return the number of iterations for the given session id """
        return self.state["sessions"][str(session_id)]["iterations"]

                  logger.debug("Loaded state: %s", state)
          except IOError as err:
              logger.warning("Unable to load state file. Graphing disabled: %s", str(err))
  
    def get_iterations_for_session(self, session_id):
        """ Return the number of iterations for the given session id """
        return self.state["sessions"][str(session_id)]["iterations"]

  
  class SessionsSummary():
      """ Calculations for analysis summary stats """
  
keep keep keep add keep keep keep keep
 Bugfix: GUI Analysis - Correctly report iterations and rate 
lib/gui/stats.py