DeadlineMovingAverageModel

class DeadlineMovingAverageModel(window: int = 3, seasonality: str = 'month')[source]

Bases: etna.models.base.PerSegmentModel

Moving average model that uses exact previous dates to predict.

Initialize deadline moving average model.

Parameters
  • window (int) – Number of values taken for forecast for each point.

  • seasonality (str) – Only allowed monthly or annual seasonality.

Inherited-members

Methods

fit(ts)

Fit model.

forecast(ts)

Make predictions.

get_model()

Get internal model.

get_model() Dict[str, etna.models.deadline_ma.DeadlineMovingAverageModel][source]

Get internal model.

Returns

Internal model

Return type

Dict[str, etna.models.deadline_ma.DeadlineMovingAverageModel]