> For the complete documentation index, see [llms.txt](https://vikram-bajaj.gitbook.io/deep-learning-specialization-coursera/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vikram-bajaj.gitbook.io/deep-learning-specialization-coursera/sequence-models/recurrent-neural-networks/rnn-structure.md).

# RNN Structure

## RNN Structure

The image below shows the structure of a simple RNN.

## ![](/files/-M5-0WaYG8NZxFXp4Kf9)

An RNN maps every $$x^{\lt i\gt}$$ to a $$y^{\lt i\gt}$$, and while doing so, it uses information learned at previous timestamps. However, it does not use information from future timestamps.

$$a^{<t>} = g(W\_{aa}a^{<t-1>}+W\_{az}x^{<t>}+b\_{a})$$

$$\hat{y}^{<t>}=g(W\_{ya}a^{<t>}+b\_{y})$$
