prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Can arbitrary seasonalities start from arbitrary date?

Open cebnesaj opened this issue 9 years ago • 1 comments

Right now it looks like setting an arbitrary seasonality e.g. quarterly, automatically starts the period from January 1 i.e. it begins from the start of the calendar period. Is it possible to have them start at some arbitrary date?

cebnesaj avatar Aug 15 '17 18:08 cebnesaj

Yes, there is an argument yearly_start to the prophet_plot_components function (R) or plot_components method (Python) that should do exactly what you want. You can read about it in the docstring. In R:

?prophet_plot_components

In Python:

help(Prophet.plot_components)

You just specify the number of days to shift the start, so prophet_plot_components(m, fcst, yearly_start=31) to start on Feb 1 instead of Jan 1.

bletham avatar Aug 19 '17 06:08 bletham