Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

python - Facebook Prophet - cross validation with regular gaps

I have data with regular gaps (hourly data from 6am – 8pm) for several years. I created a future dataframe with the same pattern, so the predictions are only made for 6am – 8pm for the future.

Now I want to cross validate my predictions. How would I “instruct” the cross validation to only predict for 6am-8pm (I would like to get hourly forecasts for several weeks). If I set all values from 8pm – 6pm to 0, I can use this

df_cv = cross_validation(m, initial = '43722 hours', period = '1 hours', horizon = '1 hours')

However, this very long to execute, as I’m (unnecessarily) predicting for hours I know will be 0. Any suggestions?

question from:https://stackoverflow.com/questions/65917472/facebook-prophet-cross-validation-with-regular-gaps

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

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...