Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Modern Time Series Forecasting with Python

You're reading from   Modern Time Series Forecasting with Python Industry-ready machine learning and deep learning time series analysis with PyTorch and pandas

Arrow left icon
Product type Paperback
Published in Oct 2024
Publisher Packt
ISBN-13 9781835883181
Length 658 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jeffrey Tackes Jeffrey Tackes
Author Profile Icon Jeffrey Tackes
Jeffrey Tackes
Manu Joseph Manu Joseph
Author Profile Icon Manu Joseph
Manu Joseph
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Part-1: Getting Familiar with Time Series FREE CHAPTER
2. Introducing Time Series 3. Acquiring and Processing Time Series Data 4. Analyzing and Visualizing Time Series Data 5. Setting a Strong Baseline Forecast 6. Part-2: Machine Learning for Time Series
7. Time Series Forecasting as Regression 8. Feature Engineering for Time Series Forecasting 9. Target Transformations for Time Series Forecasting 10. Forecasting Time Series with Machine Learning Models 11. Ensembling and Stacking 12. Global Forecasting Models 13. Part-3: Deep Learning for Time Series
14. Introduction to Deep Learning 15. Building Blocks of Deep Learning for Time Series 16. Common Modeling Patterns for Time Series 17. Attention and Transformers for Time Series 18. Strategies for Global Deep Learning Forecasting Models 19. Specialized Deep Learning Architectures for Forecasting 20. Probabilistic Forecasting and More 21. Part-4: Mechanics of Forecasting
22. Multi-Step Forecasting 23. Evaluating Forecast Errors—A Survey of Forecast Metrics 24. Evaluating Forecasts—Validation Strategies 25. Index

Setting up a test harness

Before we start forecasting and setting up baselines, we need to set up a test harness. In software testing, a test harness is a collection of code and the inputs that have been configured to test a program under various situations. In terms of machine learning, a test harness is a set of code and data that can be used to evaluate algorithms. It is important to set up a test harness so that we can evaluate all future algorithms in a standard and quick way.

The first thing we need is holdout (test) and validation datasets.

Creating holdout (test) and validation datasets

As a standard practice, in machine learning, we set aside two parts of the dataset, name them validation data and test data, and don't use them at all to train the model. The validation data is used in the modelling process to assess the quality of the model. To select between different model classes, tune the hyperparameters, perform feature selection, and so on, we need a dataset. Test...

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