prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Error in periods

Open ashawky84 opened this issue 9 years ago • 2 comments

The predict function will always be a month short i.e if the last TS date is 2017-01-01 and the frequency is set to month i.e (freq= "m") and the period is set to (periods = 6) last date of forecast is 2017-06-01 while it should be 2017-07-01.

Cheers,

Ahmed Shawky

ashawky84 avatar Mar 03 '17 16:03 ashawky84

If freq=D,it's ok.I test TS date =2008-12-10,period=1,freq = m, it output two months;2008-12-31 and 2009-1-31.

stevenjk2012 avatar Mar 09 '17 02:03 stevenjk2012

Thanks for pointing this out, this was a bug, fixed by https://github.com/facebookincubator/prophet/commit/1d37f7f6fe5803f041873ff09256104ca82d6511. If you install the latest from Github it should now be working:

devtools::install_github('facebookincubator/prophet', subdir='R')

bletham avatar Mar 12 '17 12:03 bletham