It might be helpful for all prophet user to implement "rolling forecasting origin" type cross-validation for time series as the following link says:
Should I implement it and make a pull request for the Prophet?
@teramonagi
FYI, the term used for cross-validating TS is BackTesting.
Feel free to implement any feature you want and make a PR.
Your changes will be reviewed, discussed and eventually accepted or not ;)
OK, I'll give it a try :)
I know the word BackTesting, but it sounds like more financial word than time series word.
This is great, thanks!
How can I use this new feature?
It is not released yet.
If you want to use development version, run the following commands.
$ git clone -b v0.2 https://github.com/facebookincubator/prophet.git
$ cd prophet
$ pip install .
Thank you. I would need the corresponding syntax in R for install and usage.
I'll add it to R in the next few days.
@bletham
Let me know if you have any help!
This can now be installed in R using the devtools package:
devtools::install_github('facebookincubator/prophet', subdir='R', ref='v0.2')
It provides functions cross_validation and simulated_historical_forecasts. You can see the docstring for how to use the functions (?cross_validation). The output of both is a dataframe with actual values (y) and forecasted values (yhat) using a bunch of historical cutoff points. You can compare y and yhat to eachother using whichever error metric you'd like.
This is now in v0.2 on CRAN and pypi, with documentation here:
https://facebookincubator.github.io/prophet/docs/diagnostics.html
Thanks again!
Most helpful comment
@teramonagi
FYI, the term used for cross-validating TS is BackTesting.
Feel free to implement any feature you want and make a PR.
Your changes will be reviewed, discussed and eventually accepted or not ;)