original_docstring:  Calculate rate per iteration.
  
          Returns
          -------
          :class:`numpy.ndarray`
              The training rate for each iteration of the selected session
          
docstring: Calculate rate per iteration.
  Returns
docstring_tokens: Calculate rate per iteration . Returns
code: def _calc_rate(self):
          """ Calculate rate per iteration.
  
          Returns
          -------
          :class:`numpy.ndarray`
              The training rate for each iteration of the selected session
          """
          logger.debug("Calculating rate")
          retval = (Session.batch_sizes[self._session_id] * 2) / np.diff(Session.get_timestamps(
              self._session_id))
          logger.debug("Calculated rate: Item_count: %s", len(retval))
          return retval
code_tokens: def _calc_rate ( self ) : logger . debug ( "Calculating rate" ) retval = ( Session . batch_sizes [ self . _session_id ] * 2 ) / np . diff ( Session . get_timestamps ( self . _session_id ) ) logger . debug ( "Calculated rate: Item_count: %s" , len ( retval ) ) return retval
short_docstring: Calculate rate per iteration.
short_docstring_tokens: Calculate rate per iteration .
comment: """ Calculate rate per iteration.
  
          Returns
          -------
          :class:`numpy.ndarray`
              The training rate for each iteration of the selected session
          """