prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Different seasonality length

Open pbartos opened this issue 4 years ago • 2 comments

Does Prophet support two different sizes of seasonality? I have data with this season length: [...,21,21,21,21,21,28,21,21,....] But train results look like: [...,21,21,21,21,21,28,14,21,....] Seasons setup: model.add_seasonality(name='21_season', period=21, fourier_order=10, condition_name='21_CAMPAIGN', mode="multiplicative") model.add_seasonality(name='28_season', period=28, fourier_order=10, condition_name='28_CAMPAIGN', mode="multiplicative") Results: image

pbartos avatar Jan 14 '22 11:01 pbartos

The typical seasonality for business metrics is a combination of day-of-year ("yearly") and day-of-week ("weekly"), which Prophet usually captures without issues.

In this case it seems you want to have different seasonality patterns for different parts of the training data, which is technically easier compared to having a combination. Just checking that the 21_CAMPAIGN and 28_CAMPAIGN flags are non-overlapping?

tcuongd avatar May 22 '22 11:05 tcuongd

Yes.

pbartos avatar May 23 '22 05:05 pbartos