-
Book Overview & Buying
-
Table Of Contents
Time Series with PyTorch
By :
“It’s difficult to make predictions, especially about the future.”
Chances are you have heard this line before (attributed to Niels Bohr or Yogi Berra, depending on whom you trust). Attempting to predict the future has been a human activity for a very long time. Numerous cultures around the world, across time, have attempted to foretell the future based on the distribution of sacrificial animal entrails. In the Bible, the Book of Daniel discusses magicians, enchanters, astrologers, and diviners employed at the court. The Oracle of Delphi provided her predictions while intoxicated by vapors.
The fortunes of forecasters varied throughout history (Emperor Constantine banned soothsayers, mathematicians, and forecasters), but in our day and age, forecasting is a crucial activity. Forecasts and estimations are not always accurate, however; here are some of the most famous examples of people really missing the mark:
This list has not been provided to call out the authors of those failed predictions but to stress an important point: it is quite easy to be very certain and very wrong—and there is quite a lot at stake. “How much?” you may ask. Eric Wilson from the Institute of Business Forecasting demonstrated in a study that a 15% forecast accuracy improvement will deliver a 3% or higher improvement in pre-tax profit. For a company with $10 billion turnover, a 1% forecasting accuracy improvement is worth $300 million. Estimating the impact across Fortune 500 companies is left as an exercise to the reader.
With good forecasting models, we can make predictions that improve our world! Apart from business benefits, forecasting results can also help companies and institutes optimize their resources and reduce waste. Forecasting is also integrated into our daily lives; for example, weather forecasting helps us plan our trips and daily lives.
Initially, we’ll focus the chapters of this book on developing an appreciation of time-series data and forecasting predictions using this data. As you progress through the chapters, our simple goals are for you to understand how we forecast using neural architectures such as feedforward neural networks (FFNs), recurrent neural networks (RNNs), and NBEATSx and how these models may be built in PyTorch, along with how to evaluate and target your modeling. Of course, we cannot build every model and pipeline in a way that will work for every use case, but by the end of the book, we hope you understand enough about neural networks, PyTorch, and time-series modeling to experiment on your own.
In this chapter, we’ll take you through a brief history of time-series forecasting, which can be roughly divided into three periods: early origins, classical, and modern. You might wonder why we’re looking at this history—isn’t it just old news? Not at all; as you’ll discover, many older modeling approaches have stood the test of time, being shaped by many fields of study. As we trace the evolution from early astronomical predictions to today’s machine learning (ML) techniques, you’ll gain a richer appreciation of the foundations underpinning the methods we use. More specifically, we will cover the following topics:
Your purchase includes a free PDF copy + exclusive extras
Your purchase includes a DRM-free PDF copy of this book, 7-day trial to the Packt+ library (no credit card required), and additional exclusive extras. See the Free benefits with your book section in the Preface to unlock them instantly and maximize your learning.