Recurrent Neural Networks
In the Neural Networks Lessons, we learned how to use Neural Networks to make predictions based on some input fixed size. Sometimes are inputs are sequential and vary in length, we often call this time series data but the index doesn’t have to be time, it just means the variables have a fixed order:
and we want to predict the next time step , which can be a classification or a regression task as before.
We have two goals.
- We want the model to be dependent on previous timesteps
- We want the model to work with input sequences of any length
We efficiently achieve this with an RNN Cell, depicted below. The cell’s output depends on the previous timesteps activation output and the current input . It is basically two neurons in one.