Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Forecasting Time Series Data with Prophet

You're reading from   Forecasting Time Series Data with Prophet Build, improve, and optimize time series forecasting models using Meta's advanced forecasting tool

Arrow left icon
Product type Paperback
Published in Mar 2023
Publisher Packt
ISBN-13 9781837630417
Length 282 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Greg Rafferty Greg Rafferty
Author Profile Icon Greg Rafferty
Greg Rafferty
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1: Getting Started with Prophet
2. Chapter 1: The History and Development of Time Series Forecasting FREE CHAPTER 3. Chapter 2: Getting Started with Prophet 4. Chapter 3: How Prophet Works 5. Part 2: Seasonality, Tuning, and Advanced Features
6. Chapter 4: Handling Non-Daily Data 7. Chapter 5: Working with Seasonality 8. Chapter 6: Forecasting Holiday Effects 9. Chapter 7: Controlling Growth Modes 10. Chapter 8: Influencing Trend Changepoints 11. Chapter 9: Including Additional Regressors 12. Chapter 10: Accounting for Outliers and Special Events 13. Chapter 11: Managing Uncertainty Intervals 14. Part 3: Diagnostics and Evaluation
15. Chapter 12: Performing Cross-Validation 16. Chapter 13: Evaluating Performance Metrics 17. Chapter 14: Productionalizing Prophet 18. Index 19. Other Books You May Enjoy

Performing forward-chaining cross-validation

Forward-chaining cross-validation, also called rolling-origin cross-validation, is similar to k-fold cross-validation but is better suited to sequential data such as time series. There is no random shuffling of data to begin with, but a test set may be set aside. The test set must be the final portion of data, so if each fold is going to be 10% of your data (as it would be in 10-fold cross-validation), then your test set will be the final 10% of your date range.

With the remaining data, you choose an initial amount of data to train on, let’s say five folds in this example, and then you evaluate on the sixth fold and save that performance metric. You retrain now on the first six folds and evaluate on the seventh. You repeat this until all folds are exhausted and again take the average of your performance metric. The folds using this technique would look like this:

Figure 12.4 – Forward-chaining cross-validation with five folds

Figure 12.4 – Forward-chaining...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image