𝔖 Scriptorium
✦   LIBER   ✦

📁

Deep Learning for Time Series Cookbook

✍ Scribed by Vitor Cerqueira and Luís Roque


Publisher
Packt Publishing Pvt Ltd
Year
2024
Tongue
English
Leaves
443
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Use PyTorch and Python recipes for forecasting, classification, and anomaly detection

Learn how to deal with time series data and how to model it using deep learning and take your skills to the next level by mastering PyTorch using different Python recipes

Key Features
Learn the fundamentals of time series analysis and how to model time series data using deep learning
Explore the world of deep learning with PyTorch and build advanced deep neural networks
Gain expertise in tackling time series problems, from forecasting future trends to classifying patterns and anomaly detection
Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Most organizations exhibit a time-dependent structure in their processes, including fields such as finance. By leveraging time series analysis and forecasting, these organizations can make informed decisions and optimize their performance. Accurate forecasts help reduce uncertainty and enable better planning of operations. Unlike traditional approaches to forecasting, deep learning can process large amounts of data and help derive complex patterns. Despite its increasing relevance, getting the most out of deep learning requires significant technical expertise.

This book guides you through applying deep learning to time series data with the help of easy-to-follow code recipes. You'll cover time series problems, such as forecasting, anomaly detection, and classification. This deep learning book will also show you how to solve these problems using different deep neural network architectures, including convolutional neural networks (CNNs) or transformers. As you progress, you'll use PyTorch, a popular deep learning framework based on Python to build production-ready prediction solutions.

By the end of this book, you'll have learned how to solve different time series tasks with deep learning using the PyTorch ecosystem.

What you will learn
Grasp the core of time series analysis and unleash its power using Python
Understand PyTorch and how to use it to build deep learning models
Discover how to transform a time series for training transformers
Understand how to deal with various time series characteristics
Tackle forecasting problems, involving univariate or multivariate data
Master time series classification with residual and convolutional neural networks
Get up to speed with solving time series anomaly detection problems using autoencoders and generative adversarial networks (GANs)
Who this book is for
If you're a machine learning enthusiast or someone who wants to learn more about building forecasting applications using deep learning, this book is for you. Basic knowledge of Python programming and machine learning is required to get the most out of this book.

✦ Table of Contents


Deep Learning for Time Series Cookbook
Contributors
About the authors
About the reviewer
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Sections
Getting ready
How to do it…
How it works…
There’s more…
See also
Get in touch
Share Your Thoughts
Download a free PDF copy of this book
1
Getting Started with Time Series
Technical requirements
Loading a time series using pandas
Getting ready
How to do it…
How it works…
Visualizing a time series
Getting ready
How to do it…
How it works…
There’s more…
Resampling a time series
Getting ready
How to do it…
How it works…
There’s more…
Dealing with missing values
Getting ready
How to do it…
How it works…
There’s more…
Decomposing a time series
Getting ready
How to do it…
How it works…
There’s more…
See also
Computing autocorrelation
Getting ready
How to do it…
How it works…
There’s more…
Detecting stationarity
Getting ready
How to do it…
How it works…
There’s more…
Dealing with heteroskedasticity
Getting ready
How to do it…
How it works…
There’s more…
See also
Loading and visualizing a multivariate time series
Getting ready
How to do it…
How it works…
Resampling a multivariate time series
Getting ready
How to do it…
How it works…
Analyzing correlation among pairs of variables
Getting ready
How to do it…
How it works…
2
Getting Started with PyTorch
Technical requirements
Installing PyTorch
Getting ready
How to do it…
How it works…
Basic operations in PyTorch
Getting ready
How to do it…
How it works…
Advanced operations in PyTorch
Getting ready
How to do it…
How it works…
Building a simple neural network with PyTorch
Getting ready
How to do it…
There’s more…
Training a feedforward neural network
Getting ready
How to do it…
How it works…
Training a recurrent neural network
Getting ready
How to do it…
How it works…
Training an LSTM neural network
Getting ready
How to do it…
How it works…
Training a convolutional neural network
Getting ready
How to do it…
How it works…
3
Univariate Time Series Forecasting
Technical requirements
Building simple forecasting models
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with ARIMA
Getting ready
How to do it…
How it works…
There’s more…
Preparing a time series for supervised learning
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with a feedforward neural network
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with an LSTM
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with a GRU
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with a Stacked LSTM
Getting ready
How to do it…
How it works…
Combining an LSTM with multiple fully connected layers
Getting ready
How to do it…
How it works…
There’s more…
Univariate forecasting with a CNN
Getting ready
How to do it…
How it works…
There’s more…
Handling trend – taking first differences
Getting ready
How to do it…
How it works…
There’s more…
Handling seasonality – seasonal dummies and Fourier series
Getting ready
How to do it…
How it works…
There’s more…
Handling seasonality – seasonal differencing
Getting ready
How to do it…
How it works…
Handling seasonality – seasonal decomposition
Getting ready
How to do it…
How it works…
Handling non-constant variance – log transformation
Getting ready
How to do it…
How it works…
4
Forecasting with PyTorch Lightning
Technical requirements
Preparing a multivariate time series for supervised learning
Getting ready
How to do it…
How it works…
Training a linear regression model for forecasting with a multivariate time series
Getting ready
How to do it…
How it works…
Feedforward neural networks for multivariate time series forecasting
Getting ready
How to do it…
How it works…
There’s more…
LSTM neural networks for multivariate time series forecasting
Getting ready
How to do it…
How it works…
There’s more…
Monitoring the training process using Tensorboard
Getting ready
How to do it…
How it works…
There’s more…
Evaluating deep neural networks for forecasting
Getting ready
How to do it…
How it works…
There’s more…
Using callbacks – EarlyStopping
Getting ready
How to do it…
How it works…
There’s more…
5
Global Forecasting Models
Technical requirements
Multi-step forecasting with multivariate time series
Getting ready
How to do it…
How it works…
There’s more…
Multi-step and multi-output forecasting with multivariate time series
Getting ready
How to do it…
How it works…
Preparing multiple time series for a global model
Getting ready
How to do it…
How it works…
Training a global LSTM with multiple time series
Getting ready
How to do it…
How it works…
Global forecasting models for seasonal time series
Getting ready
How to do it…
How it works…
There’s more…
Hyperparameter optimization using Ray Tune
Getting ready
How to do it…
How it works…
There’s more…
6
Advanced Deep Learning Architectures for Time Series Forecasting
Technical requirements
Interpretable forecasting with N-BEATS
Getting ready
How to do it…
How it works…
There’s more…
Optimizing the learning rate with PyTorch Forecasting
Getting ready
How to do it…
How it works…
There’s more…
Getting started with GluonTS
Getting ready
How to do it…
How it works…
Training a DeepAR model with GluonTS
Getting ready
How to do it…
How it works…
There’s more…
Training a Transformer model with NeuralForecast
Getting ready
How to do it…
How it works…
There’s more…
Training a Temporal Fusion Transformer with GluonTS
Getting ready
How to do it…
How it works…
There’s more…
Training an Informer model with NeuralForecast
Getting ready
How to do it…
How it works…
There’s more…
Comparing different Transformers with NeuralForecast
Getting ready
How to do it…
How it works…
7
Probabilistic Time Series Forecasting
Technical requirements
Introduction to exceedance probability forecasting
Getting ready
How to do it…
How it works…
There’s more…
Exceedance probability forecasting with an LSTM
Getting ready
How to do it…
How it works…
There’s more…
Creating prediction intervals using conformal prediction
Getting ready
How to do it…
How it works…
Probabilistic forecasting with an LSTM
Getting ready
How to do it…
How it works…
Probabilistic forecasting with DeepAR
Getting ready
How to do it…
How it works…
Introduction to Gaussian Processes
Getting ready
How to do it…
How it works…
Using Prophet for probabilistic forecasting
Getting ready
How to do it…
How it works…
There’s more…
8
Deep Learning for Time Series Classification
Technical requirements
Tackling TSC with K-nearest neighbors
Getting ready
How to do it…
How it works…
There’s more…
Building a DataModule class for TSC
Getting ready
How to do it…
How it works…
Convolutional neural networks for TSC
Getting ready
How to do it…
How it works…
ResNets for TSC
Getting ready
How to do it…
How it works…
Tackling TSC problems with sktime
Getting ready
How to do it…
How it works…
There’s more…
9
Deep Learning for Time Series Anomaly Detection
Technical requirements
Time series anomaly detection with ARIMA
Getting ready
How to do it…
How it works…
There’s more…
Prediction-based anomaly detection using DL
Getting ready
How to do it…
How it works…
There’s more…
Anomaly detection using an LSTM AE
Getting ready
How to do it…
How it works…
Building an AE using PyOD
Getting ready
How to do it…
How it works…
There’s more…
Creating a VAE for time series anomaly detection
Getting ready
How to do it…
How it works…
There’s more…
Using GANs for time series anomaly detection
Getting ready…
How to do it…
How it works…
There’s more…
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book


📜 SIMILAR VOLUMES


Deep Learning for Time Series Data Cookb
✍ Vitor Cerqueira, Luís Roque 📂 Library 📅 2024 🏛 Packt Publishing 🌐 English

Most organizations exhibit a time-dependent structure in their processes, including fields such as finance. By leveraging time series analysis and forecasting, these organizations can make informed decisions and optimize their performance. Accurate forecasts help reduce uncertainty and enable better

Deep Time Series Forecasting with Python
✍ N D Lewis 📂 Library 📅 2016 🏛 CreateSpace Independent Publishing Platform 🌐 English

<h2> Master Deep Time Series Forecasting with Python!</h2> <b> Deep Time Series Forecasting with Python</b> takes you on a gentle, fun and unhurried practical journey to creating deep neural network models for time series forecasting with Python. It uses plain language rather than mathematics;

Deep Learning in Time Series Analysis
✍ Arash Gharehbaghi 📂 Library 📅 2023 🏛 CRC Press/Science Publishers 🌐 English

Deep learning is an important element of artificial intelligence, especially in applications such as image classification in which various architectures of neural network, e.g., convolutional neural networks, have yielded reliable results. This book introduces deep learning for time series analysis,