prophet
prophet copied to clipboard
cross_validation() got an unexpected keyword argument 'cutoffs'
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?
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
I'm facing a similar issue even with the latest version.
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
I am having the same issue and also linked to this one: https://github.com/facebook/prophet/issues/2553