code: def _smooth(values: List[float], beta: float) -> List[float]:
      
      avg_value = 0.
      smoothed = []
      for i, value in enumerate(values):
          avg_value = beta * avg_value + (1 - beta) * value
          smoothed.append(avg_value / (1 - beta ** (i + 1)))
      return smoothed
docs: Exponential smoothing of values