0
0
TensorFlowml~5 mins

LSTM layer in TensorFlow - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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 layer designed to remember information for long periods.
Click to reveal answer
beginner
How does an LSTM layer help with sequence data?
An LSTM layer keeps track of important information over time by using gates to control what to remember, forget, or output. This helps it learn patterns in sequences like sentences or time series.
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
intermediate
What is the purpose of the cell state in an LSTM layer?
The cell state acts like a conveyor belt that carries important information through the sequence, allowing the LSTM to keep or discard information as needed.
Click to reveal answer
beginner
In TensorFlow, how do you add an LSTM layer to a model?
You can add an LSTM layer using: tf.keras.layers.LSTM(units, return_sequences=True/False). 'units' is the number of memory cells.
Click to reveal answer
What problem does an LSTM layer mainly solve?
AReducing model size
BRemembering long-term dependencies in sequences
CImproving image resolution
DSorting data faster
Which gate in an LSTM decides what information to forget?
AForget gate
BInput gate
COutput gate
DReset gate
In TensorFlow, which argument controls if an LSTM layer returns the full sequence or just the last output?
Areturn_sequences
Bactivation
Cinput_shape
Dunits
What type of data is an LSTM layer best suited for?
AImages
BTabular data
CSequential data like text or time series
DStatic numbers
Which of these is NOT a part of an LSTM cell?
AOutput gate
BForget gate
CInput gate
DPooling layer
Explain how an LSTM layer processes sequence data and why it is better than a simple RNN.
Think about how LSTM remembers important info over time.
You got /4 concepts.
    Describe how to add an LSTM layer in TensorFlow and what key parameters you need to set.
    Focus on the code and what controls output shape.
    You got /4 concepts.