March 2018
Intermediate to advanced
320 pages
7h 53m
English
Thanks to LSTM, we can exploit the temporal redundancy contained in our signals. From the previous section, we learned that the observation matrix should be reformatted into a 3D tensor, with three axes:
Since we're dealing with just a mono-dimensional signal, the input tensor for the LSTM should have the size (None, time_dimension, 1), where time_dimension is the length of the time window. Let's code now, starting with the cosine signal. We suggest you name the file 4_rnn_cosine.py.
import matplotlib.pyplot as pltimport numpy as npimport tensorflow as tffrom evaluate_ts ...
Read now
Unlock full access