Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
588 views
in Technique[技术] by (71.8m points)

r - using facebook prophet for cross validation on months time period

I'm trying to do a time slice leave one out cross validation, i.e. backtesting on months with horizon 1 month on a daily data and model using the facebook prophet package in R.

How can I do that?

Here's what I'm trying,

m <- prophet(df)
future <- make_future_dataframe(m, periods = 31)
fcst <- predict(m, future)

df.cv <- cross_validation(
  m,
  horizon = 31,
  units = 'days',
  initial = 1
)

Thanks in advance!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...