class_docstr: Class for estimating the delta for MSES.
class_docstr_tok: ["Class","for","estimating","the","delta","for","MSES","."]
code: def max_scale(self, scale: int):
      self._max_scale = scale
      # update delta stats
      self.stats = {s: ds for s, ds in self.stats.items() if s <= scale}
      for scale in range(1, self.max_scale + 1):
          if scale not in self.stats:
              self.stats[scale] = DeltaStats(scale, self.recency_weight)
  
imports: import logging
  from math import floor
  from typing import Dict, List, Optional, Tuple, Union
  import numpy
  import pandas
  from merlion.utils.time_series import TimeSeries, UnivariateTimeSeries, assert_equal_timedeltas
  from merlion.utils.istat import ExponentialMovingAverage, RecencyWeightedVariance
  from merlion.utils.resample import to_pd_datetime, to_timestamp
  from merlion.transform.moving_average import LagTransform
  from merlion.transform.resample import TemporalResample
  from merlion.models.forecast.base import ForecasterBase, ForecasterConfig
label_desc: Use image node_id 4 for calling the DeltaEstimator obj's underlying member method code with example usage: obj.max_scale(scale) without return types