Analyzing sequential data using recurrent neural networks
We have been dealing with static data so far. Artificial neural networks are good at building models for sequential data too. In particular, recurrent neural networks are great at modeling sequential data. Perhaps time-series data is the most commonly occurring form of sequential data in our world. You can learn more about recurrent neural networks at http://www.wildml.com/2015/09/recurrent-neural-networks-tutorial-part-1-introduction-to-rnns. When we are working with time-series data, we cannot just use generic learning models. We need to characterize the temporal dependencies in our data so that we can build a robust model. Let's see how to build it.
Create a new python file and import the following packages:
import numpy as np import matplotlib.pyplot as plt import neurolab as nl
Define a function to generate the waveforms. Start by defining four sine waves:
def get_data(num_points): # Create sine waveforms...