Recall & Review
beginner
What does LSTM stand for in machine learning?
LSTM stands for Long Short-Term Memory. It is a type of neural network designed to remember information for long periods, especially useful for sequences like text.
Click to reveal answer
intermediate
Why are LSTMs better than simple RNNs for text data?
LSTMs can remember important information over longer sequences and avoid the problem of forgetting early data, which simple RNNs struggle with due to vanishing gradients.
Click to reveal answer
intermediate
Name the three main gates inside an LSTM cell.
The three main gates are: Forget Gate (decides what to forget), Input Gate (decides what new information to add), and Output Gate (decides what to output).
Click to reveal answer
beginner
How does an LSTM process a sentence for text classification?
An LSTM reads the sentence word by word, updating its memory at each step. After the last word, it uses the final hidden state to predict the sentence's category.
Click to reveal answer
beginner
What is a common metric to evaluate LSTM models on text classification tasks?
Accuracy is commonly used to measure how many sentences the LSTM correctly classifies out of all tested sentences.
Click to reveal answer
What problem does an LSTM solve better than a simple RNN?
✗ Incorrect
LSTMs are designed to remember information over long sequences, which simple RNNs struggle with.
Which gate in an LSTM decides what information to forget?
✗ Incorrect
The Forget Gate controls which information is removed from the cell's memory.
In text classification, what does the LSTM use to make the final prediction?
✗ Incorrect
The final hidden state summarizes the entire sentence and is used for prediction.
Which of these is NOT a typical use of LSTMs?
✗ Incorrect
Image classification usually uses convolutional neural networks, not LSTMs.
What is a common input format for LSTM models working on text?
✗ Incorrect
LSTMs require numerical input like one-hot vectors or embeddings representing words.
Explain how an LSTM processes a sentence step-by-step for text classification.
Think about how the LSTM reads and remembers words in order.
You got /4 concepts.
Describe the role of the forget, input, and output gates inside an LSTM cell.
Each gate controls a different part of the memory update.
You got /3 concepts.