facebook / facebook/prophet

training error in cross-validation / forecast

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

Description

I am using prophet in R to make a forecast for one year (360 days) with five years of available data. To evaluate the accuracy of my forecast, I aim to cross-validate it based on training data from four years (1460 days). The "cross-validation" function makes this really convenient:
`df.cv <- cross_validation(m, horizon = 365, units = 'days', initial = 1460)
df.p <- performance_metrics(df.cv)
colMeans(df.p[,3]) # average RMSE = test set error?`

With this piece of code I can easily extract the test set/validation set error (e.g., RMSE) but how do I get to the training error in prophet?

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.