-
Book Overview & Buying
-
Table Of Contents
Time Series with PyTorch
By :
in this chapter, we introduced the concept of synthetic time series data and discussed why it is useful when real-world data is limited, incomplete, expensive to collect, or sensitive.
We first explored the data generating process and used a kiosk visitor example to show how mathematical assumptions, such as Poisson distributions and daily sine-wave patterns, can be used to simulate time series data.
We then looked at data-driven approaches to synthetic data generation, including adding noise, rearranging time chunks, and combining time series using methods such as Dynamic Time Warping Barycenter Averaging.
Next, we introduced Variational Autoencoders, or VAEs, and implemented a simplified TimeVAE model using PyTorch and Lightning. We built the dataset, dataloaders, encoder, decoder, loss function, and training workflow, then used the trained model to generate new synthetic time series samples.
Finally, we discussed how generated data can be evaluated visually...