Cross validation creating error when y data ends before cutoff end + horizon - appeared after update from 0.7.1 to 1.1.5
faouziamrouche opened this issue · 0 comments
The Cross validation function for which I create a cutoffs dataframe now raises and error (Error : Maximum cutoff value is greater than end date minus horizon, no value for cross-validation remaining) due to the last cutoff date plus horizon exceeding available dates for the actual "y" data. The same data and scripts were running successfully on 0.7.1 before the upgrade to 1.1.5. I provide the cutoffs dataframe with the last date being one month prior to the last available "y" date, so that it cross-validates only the first month prediction with the last horizon iteration, two for the previous one, three for the one before, and so on. The cutoffs are monthly, and the horizon is 190 days (6 months). I am currently using prophet 1.1.5 with Python 3.8, while I was using Python 3.6.9 with fbprophet 0.7.1.