Recurrent Neural Networks

In the Neural Networks Lessons, we learned how to use Neural Networks to make predictions based on some input fixed sizex. 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: x1,x2,,xt1,xt

and we want to predict the next time step xt+1, which can be a classification or a regression task as before.

We have two goals.

  1. We want the model xt+1 to be dependent on previous timesteps xt
  2. 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 yt depends on the previous timesteps activation output at1 and the current input xt. It is basically two neurons in one.

WoWa