BATS

class sktime.forecasting.bats.BATS(use_box_cox=None, box_cox_bounds=0, 1, use_trend=None, use_damped_trend=None, sp=None, use_arma_errors=True, show_warnings=True, n_jobs=None, multiprocessing_start_method='spawn', context=None)[source]

BATS estimator used to fit and select best performing model. BATS (Exponential smoothing state space model with Box-Cox transformation, ARMA errors, Trend and Seasonal components.) Model has been described in De Livera, Hyndman & Snyder (2011).

Parameters
  • use_box_cox (bool or None, optional (default=None)) – If Box-Cox transformation of original series should be applied. When None both cases shall be considered and better is selected by AIC.

  • box_cox_bounds (tuple, shape=(2,), optional (default=(0, 1))) – Minimal and maximal Box-Cox parameter values.

  • use_trend (bool or None, optional (default=None)) – Indicates whether to include a trend or not. When None both cases shall be considered and better is selected by AIC.

  • use_damped_trend (bool or None, optional (default=None)) – Indicates whether to include a damping parameter in the trend or not. Applies only when trend is used. When None both cases shall be considered and better is selected by AIC.

  • sp (tbats original name of this arg is "seasonal_periods".) – Iterable or array-like of floats, optional (default=None) Length of each of the periods (amount of observations in each period). Accepts int and float values here. When None or empty array, non-seasonal model shall be fitted.

  • use_arma_errors (bool, optional (default=True)) – When True BATS will try to improve the model by modelling residuals with ARMA. Best model will be selected by AIC. If False, ARMA residuals modeling will not be considered.

  • show_warnings (bool, optional (default=True)) – If warnings should be shown or not. Also see Model.warnings variable that contains all model related warnings.

  • n_jobs (int, optional (default=None)) – How many jobs to run in parallel when fitting BATS model. When not provided BATS shall try to utilize all available cpu cores.

  • multiprocessing_start_method (str, optional (default='spawn')) – How threads should be started. See also: https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods

  • context (abstract.ContextInterface, optional (default=None)) – For advanced users only. Provide this to override default behaviors

__init__(use_box_cox=None, box_cox_bounds=0, 1, use_trend=None, use_damped_trend=None, sp=None, use_arma_errors=True, show_warnings=True, n_jobs=None, multiprocessing_start_method='spawn', context=None)[source]

Initialize self. See help(type(self)) for accurate signature.