Technical requirements
We’ll focus on the PyTorch Lightning ecosystem to build deep learning models. Besides that, we’ll also use scikit-learn to create a baseline. Overall, the list of libraries used in the package is the following:
- scikit-learn (1.3.2)
pandas
(2.1.3)- NumPy (1.26.2)
- Torch (2.1.1)
- PyTorch Lightning (2.1.2)
sktime
(0.24.1)keras-self-attention
(0.51.0)
As an example, we’ll use the Car
dataset from the repository available at the following link: https://www.timeseriesclassification.com. You can learn more about the dataset in the following work:
Thakoor, Ninad, and Jean Gao. Shape classifier based on generalized probabilistic descent method with hidden Markov descriptor. Tenth IEEE International Conference on Computer Vision (ICCV’05) Volume 1. Vol. 1. IEEE, 2005.
The code and datasets used in this chapter can be found at the following GitHub URL: https://github.com/PacktPublishing/Deep-Learning...