facebook / prophet

Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
https://facebook.github.io/prophet
MIT License
18.09k stars 4.49k forks source link

cross_validation() got an unexpected keyword argument 'cutoffs' #1862

Open axg170018 opened 3 years ago

axg170018 commented 3 years ago

cutof = pd.to_datetime(['2018-01-01','2018-02-01','2018-03-01', '2018-04-01','2018-05-01','2018-06-01','2018-07-01', '2018-08-01','2018-09-01','2018-10-01','2018-11-01','2018-12-01','2019-01-01','2019-02-01', '2019-03-01','2019-04-01','2019-05-01','2019-06-01','2019-07-01','2019-08-01','2019-09-01', '2019-10-01','2019-11-01','2019-12-01','2020-01-01','2020-02-01','2020-03-01','2020-04-01', '2020-05-01','2020-06-01','2020-07-01','2020-08-01','2020-09-01','2020-10-01','2020-11-01', '2020-12-01']) df_cv2 = cross_validation(model, cutoffs=cutof, horizon='365 days')

Why am I getting an error here? I have 24 months of data and I am trying to cross-validate my model using custom cutoffs and I am using fbprophet 0.6 version for this. Can someone help me implement cross-validation for monthly data?

Screenshot 2021-03-30 111733 ![Uploading Screenshot 2021-03-30 111733.png…]()

bletham commented 3 years ago

My guess is that you're using an old version of fbprophet. Could you check the version you're using?

import fbprophet
print(fbprophet.__version__)

That particular feature was released in v0.7.

If it is old, I encourage you to upgrade to the latest version v1.0, which was released under the new package name prophet.

pip install pystan==2.19.1.1
pip install prophet
jaydeeprane commented 3 years ago

I'm facing a similar issue even with the latest version.

anksengu commented 2 years ago

I am facing the same problem. I am using the version 0.6.0. I have upgraded to v1.0, but still it does not work with cutoff argument.

Any help is appreciated

priamai commented 2 months ago

I am having the same issue and also linked to this one: https://github.com/facebook/prophet/issues/2553