Stacked LSTM
Contents
This post creates a Stacked LSTM and learns a simple pattern in the sequence.
A few points about Stacked LSTM :
- It was introduced by Graves as an application to speech recognition
- The key aspect to remember for the API usage is to use
return_sequences
as true
Let us look at a damped time series sequence of length 50
and predict the next 5
steps of the sequence
Data Preparation
|
|
Creating a Stacked LSTM Model
|
|
|
|
Train the model
|
|
Stacked LSTM to LSTM is similar to Deep Neural Networks to Perceptron. The addition of stacked layers increases the abstractions that the network can learn from the data.