      def sessions_stats(self):
          """ Return compiled stats """
          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
              elapsed = ts_data["end_time"] - ts_data["start_time"]
              batchsize = self.session.total_batchsize[sess_idx]
              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
 
</s> remove                                 "iterations": len(timestamps)}
 </s> add                                 "datapoints": len(timestamps)} </s> remove                              "rate": (batchsize * ts_data["iterations"]) / elapsed,
 </s> add                              "rate": (batchsize * iterations) / elapsed, </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": ts_data["iterations"]})
 </s> add                              "iterations": iterations})
            iterations = self.session.get_iterations_for_session(sess_idx)
      def sessions_stats(self):
          """ Return compiled stats """
          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
            iterations = self.session.get_iterations_for_session(sess_idx)
              elapsed = ts_data["end_time"] - ts_data["start_time"]
              batchsize = self.session.total_batchsize[sess_idx]
              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
keep keep keep add keep keep keep keep
 Bugfix: GUI Analysis - Correctly report iterations and rate 
lib/gui/stats.py