Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Manu Joseph, Jeffrey Tackes

Rating 3.5 AI initial rating

Learn traditional and cutting-edge Machine Learning (ML) and deep learning techniques and best practices for time series forecasting with Python, including global ML models, conformal prediction, and transformer architecturesKey Features Work through examples of how to use machine learning and global machine learning models for forecasting Enhance your time series toolkit by using deep learning models, including RNNs, transformers, and N-BEATS Learn probabilistic forecasting with conformal prediction and quantile regressions Book DescriptionPredicting the future, whether it's market trends, energy demand, or website traffic, has never been more crucial. This practical, hands-on guide empowers you to build and deploy powerful time series forecasting models. With Modern Time Series Forecasting with Python, Second Edition, you'll master cutting-edge deep learning...

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on bridge from classical baselines to modern ML and deep learning forecasting in Python, built around one running smart-meter dataset. Best for data scientists and ML engineers who already know some machine learning and want a practical, end-to-end forecasting workflow rather than statistical theory. 【Book Arc】 - **Opening (~0%–10%)**: Frames why time series is the overlooked "hidden dimension" of ML practice, then gets hands-on with pandas — parsing dates into `DatetimeIndex`, slicing, date offsets, and reshaping raw block-level readings into a proper series. - **Early (~10%–30%)**: Data hygiene and understanding come first: handling and imputing missing data, then visualizing components (trend, seasonality, cycles, noise), decomposition, and outlier detection. This stage solves "do I trust and understand my data?" - **Early–Middle (~30%–40%)**: Establishes a strong baseline before any fancy modeling — a test harness, holdout/validation splits, evaluation metrics, and classical forecasters (naïve through ETS, ARIMA, Theta, TBATS, MSTL), plus forecastability diagnostics. - **Middle (~40%–55%)**: Reframes forecasting as supervised regression: ML fundamentals, feature engineering, target transformations, and the conceptual core — data-generating processes, synthetic series, stationarity, and predictability. - **Late (~55%–70%)**: Moves into the modern toolkit — ML models, ensembling/stacking, global forecasting models, then deep learning building blocks, common modeling patterns, attention/transformers, and specialized architectures. - **Ending (~70%+ of covered material)**: Probabilistic forecasting (conformal prediction, quantile regression), multi-step forecasting, and rigorous evaluation via forecast metrics and validation strategies. 【Key Takeaways】 - **Baselines are a discipline, not a formality** (Early): The book insists on a test harness and strong simple forecasts before ML, so later gains are measured against something honest. - **Forecasting is regression in disguise** (Middle): Reframing the problem as supervised learning unlocks the entire ML toolbox — features, transformations, and standard model selection. - **The DGP mental model anchors everything** (Middle): A model approximates reality like a map approximates a city; usefulness depends on purpose, not perfection. Synthetic series via TimeSynth let you test ideas against known ground truth. - **Stationarity and predictability set the ceiling** (Middle): Changing mean or variance breaks assumptions, and not all series are equally forecastable — the book is candid that some targets (e.g., stock prices) resist prediction. - **Global models are the modern shift** (Late): Training across many related series, rather than one model per series, is presented as a central upgrade over classical per-series fitting. - **Deep learning is taught as composable blocks** (Late): RNNs, transformers, and N-BEATS arrive after building blocks and common patterns, so architectures read as assemblies rather than black boxes. - **Probabilistic forecasting is first-class** (Late): Conformal prediction and quantile regression treat uncertainty as a deliverable, not an afterthought. - **Evaluation deserves its own chapters** (Ending): Dedicated treatment of metrics and validation strategies signals that backtesting discipline is where most real projects succeed or fail. 【Reading Tips】 - Deep-read the early data-handling and baseline chapters; skim if you already know pandas and classical forecasters, but still build the test harness — everything later depends on it. - Treat the regression-reframing and DGP/stationarity chapters as the conceptual hinge; slow down there even if the code looks simple. - Run the notebooks alongside the text, especially the synthetic-series exercises — they are cheap sandboxes for testing model behavior. - When you reach deep learning, read the building-blocks and patterns chapters before any specific architecture; skipping ahead makes transformers and N-BEATS harder than they need to be. - Take away one reusable workflow (harness → baseline → features → global model → probabilistic evaluation) rather than memorizing every model. 【Coverage Limits】 The excerpts are heavily front-loaded: early chapters are well represented, while deep learning, probabilistic, and evaluation chapters appear only as table-of-contents entries. This guide therefore describes the book's structure and stated aims more than the detailed content of its later chapters.
Excerpt 1
s mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Early Access Public...
View in text
Excerpt 2
ate columns into pd.Timestamp/DatetimeIndex Using the .
View in text
Excerpt 3
ting to know more about the process of writing a Packt book. Chapter 1: Introducing Time Series Chapter 2: Acquiring and Processing Time Series Data Chapter...
View in text
Excerpt 4
e designed to be predictable, even though a bit challenging. Let's take a look at a few practical examples where we can generate a few time series using a se...
View in text
Excerpt 5
ed in the book and get rich, that won't happen(most likely). Although it is worthy of a lengthy discussion, we can summarize the key points in a short paragr...
View in text
Excerpt 6
ure out a mental model of how to relate the different files. You may call it old school, but Microsoft Excel is an excellent tool for gaining this first-leve...
View in text
Excerpt 7
. As an example, let's look at sales at a local supermarket. You have been given the point-of-sale ( POS ) transactions for the last 2 years and you are proc...
View in text
Excerpt 8
time series data that you have has equal intervals of time. In practice, even regularly sampled time series have some samples missing in between because of s...
View in text
Tags
AI categories
DataPythonArtificial Intelligence
Publisher: Packt Publishing
Publish Year: 2024
Language: English
File Format: EPUB
File Size: 6.4 MB