Search⌘ K
AI Features

Exercise: Time Series Analysis with Longer Lookbacks

Learn to perform time series analysis with longer lookbacks using convolutional neural networks. This lesson guides you through data preprocessing, scaling, model creation, and training to capture smoother trends and improve rare event predictions.

We’ve trained the model with a maximum of 60 lookbacks, but now we’ll train it with lookback=120. The longer the lookback, the smoother the trend.

Import the libraries and load the data

Let’s start our challenge by importing the libraries and loading the data. The name of the CSV file we’re using is ...