prophet icon indicating copy to clipboard operation
prophet copied to clipboard

cross_validation() got an unexpected keyword argument 'cutoffs'

Open axg170018 opened this issue 3 years ago • 4 comments

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…

axg170018 avatar Mar 30 '21 16:03 axg170018

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

bletham avatar Apr 03 '21 01:04 bletham

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

jaydeeprane avatar Jun 11 '21 20:06 jaydeeprane

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

anksengu avatar Nov 08 '21 16:11 anksengu

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

priamai avatar May 12 '24 21:05 priamai