Learn Before
Concept

Simple RNN Forward Pass Equations

For each neuron in the sequence, the output \hat y^{} and the hidden state h^{} at time step t can be calculated as follows. h^{}=g_1(Wh^{} oplus Ux^{}+b_h) \hat y^{}=g_2(Vh^{}+b_y) , where g_1, g_2 are activation functions, U, V, W are trainable parameter matrices, b_h and b_y are bias terms, and \oplus denotes element-wise addition. When the network is trained, it not only assigns weights U to each neuron’s inputs, but also discovers the weight parameters W of the hidden state function. These parameters define how much of the information from the previous steps should be carried forward to each subsequent step.

0

2

Updated 2026-06-15

Tags

Data Science

D2L

Dive into Deep Learning @ D2L