original_docstring:  Collate the session summary statistics for the given session ID.
  
          Parameters
          ----------
          session_id: int
              The session id to compile the stats for
          timestamps:
              The time stamp summary data for the given session id
  
          Returns
          -------
          dict
              The collated session summary statistics
          
docstring: Collate the session summary statistics for the given session ID.
  Parameters
  
  int
  The session id to compile the stats for
  timestamps:
  The time stamp summary data for the given session id
  
  Returns
  
  dict
  The collated session summary statistics
docstring_tokens: Collate the session summary statistics for the given session ID . Parameters int The session id to compile the stats for timestamps : The time stamp summary data for the given session id Returns dict The collated session summary statistics
code: def _collate_stats(self, session_id, timestamps):
          """ Collate the session summary statistics for the given session ID.
  
          Parameters
          ----------
          session_id: int
              The session id to compile the stats for
          timestamps:
              The time stamp summary data for the given session id
  
          Returns
          -------
          dict
              The collated session summary statistics
          """
          timestamps = self._time_stats[session_id]
          elapsed = int(timestamps["end_time"] - timestamps["start_time"])
          batchsize = self._session.batch_sizes.get(session_id, 0)
          retval = dict(
              session=session_id,
              start=timestamps["start_time"],
              end=timestamps["end_time"],
              elapsed=elapsed,
              rate=(((batchsize * 2) * timestamps["iterations"]) / elapsed if elapsed != 0 else 0),
              batch=batchsize,
              iterations=timestamps["iterations"])
          logger.debug(retval)
          return retval
code_tokens: def _collate_stats ( self , session_id , timestamps ) : timestamps = self . _time_stats [ session_id ] elapsed = int ( timestamps [ "end_time" ] - timestamps [ "start_time" ] ) batchsize = self . _session . batch_sizes . get ( session_id , 0 ) retval = dict ( session = session_id , start = timestamps [ "start_time" ] , end = timestamps [ "end_time" ] , elapsed = elapsed , rate = ( ( ( batchsize * 2 ) * timestamps [ "iterations" ] ) / elapsed if elapsed != 0 else 0 ) , batch = batchsize , iterations = timestamps [ "iterations" ] ) logger . debug ( retval ) return retval
short_docstring: Collate the session summary statistics for the given session ID.
short_docstring_tokens: Collate the session summary statistics for the given session ID .
comment: """ Collate the session summary statistics for the given session ID.
  
          Parameters
          ----------
          session_id: int
              The session id to compile the stats for
          timestamps:
              The time stamp summary data for the given session id
  
          Returns
          -------
          dict
              The collated session summary statistics
          """