🤖 Machine Learning / AI
Intermediate
What is a Recurrent Neural Network (RNN)?
Answer
An RNN is a neural network architecture designed for sequential data (time series, text, speech). Unlike feedforward networks, RNNs have recurrent connections — the hidden state at time t is a function of the current input and the previous hidden state, creating a form of memory. However, vanilla RNNs suffer from the vanishing gradient problem, making it hard to learn long-range dependencies. This is addressed by LSTM (Long Short-Term Memory) and GRU (Gated Recurrent Unit) architectures that use gating mechanisms to control information flow.
Previous
What is a convolutional neural network (CNN)?
Next
What is an LSTM and how does it solve the vanishing gradient problem?
More Machine Learning / AI Questions
View all →- Intermediate What is a convolutional neural network (CNN)?
- Intermediate What is an LSTM and how does it solve the vanishing gradient problem?
- Intermediate What is the attention mechanism in neural networks?
- Intermediate What is the Transformer architecture?
- Intermediate What is BERT and how is it pre-trained?