facebook / facebook/prophet

cross_validation() got an unexpected keyword argument 'cutoffs'

Open
#1,862 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/45842056/113021802-9007c300-9149-11eb-91bf-a769f0789cd4.png)
![Uploading Screenshot 2021-03-30 111733.png…]()

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.