Building your Recurrent Neural Network - Step by Step
Welcome to Course 5’s first assignment! In this assignment, you will implement your first Recurrent Neural Network in numpy.
Recurrent Neural Networks (RNN) are very effective for Natural Language Processing and other sequence tasks because they have “memory”. They can read inputs x⟨t⟩ x^{\langle t \rangle} (such as words) one at a time, and remember some information/context through the hidden layer activations that get passed from one time-step to the next. This allows a uni-directional RNN to take information from the past to process later inputs. A bidirection RNN can take context from both the past and the future.
Notation:
- Superscript [l] [l] denotes an object associated with the lth l^{th} layer.
- Example: a[4] a^{[4]} is the 4th 4^{th} layer activation. W[5] W^{[5]} and b[5] b^{[5]} are the 5th 5^{th} layer parameters.
Superscript (i) (i) denotes an object associated with the ith i^{th} example. Example: x(i) x^{(i)} is the ith i^{th} training example input.
Superscript ⟨t⟩ \langle t \rangle denotes an object at the tth t^{th} time-step. Example: x⟨t⟩ x^{\langle t \rangle} is the input x at the tth t^{th} time-step. x(i)⟨t⟩ x^{(i)\langle t \rangle} is the input at the t