February 2019
Beginner to intermediate
568 pages
13h 5m
English
A traditional RNN that takes multiple time steps into account for giving predictions can be visualized as follows:

Notice that, as time step increases, the impact of input at a much earlier layer would be lower. An intuition of that can be seen here (for a moment, let's ignore the bias terms):
h5 = WX5 + Uh4 = WX5 + UWX4 + U2WX3 + U3WX2 + U4WX1
You can see that, as the time step increases, the value of hidden layer is highly dependent on X1 if U>1, or much less dependent on X1 if U<1.
The dependency on U matrix can also result in vanishing gradient when the value of U is very small and can result in exploding gradient when ...
Read now
Unlock full access