parameters: (n: int, base=2, factor=1, max_value=None)
docstring: Exponential decay.
  
      Adapted from https://github.com/litl/backoff/blob/master/backoff.py (MIT License)
  
      Args:
      ----
          n: The exponent.
          base: The mathematical base of the exponentiation operation
          factor: Factor to multiply the exponentation by.
          max_value: The maximum value to yield. Once the value in the
               true exponential sequence exceeds this, the value
               of max_value will forever after be yielded.
docstring_summary: Exponential decay.
docstring_tokens: Exponential decay .
function: def expo(n: int, base=2, factor=1, max_value=None):
      """Exponential decay.
  
      Adapted from https://github.com/litl/backoff/blob/master/backoff.py (MIT License)
  
      Args:
      ----
          n: The exponent.
          base: The mathematical base of the exponentiation operation
          factor: Factor to multiply the exponentation by.
          max_value: The maximum value to yield. Once the value in the
               true exponential sequence exceeds this, the value
               of max_value will forever after be yielded.
  
      """
      a = factor * base ** n
      if max_value is None or a < max_value:
          return a
      else:
          return max_value
function_tokens: def expo ( n : int , base = 2 , factor = 1 , max_value = None ) : a = factor * base ** n if max_value is None or a < max_value : return a else : return max_value