Complete the code to import the GRU layer from TensorFlow Keras.
from tensorflow.keras.layers import [1]
The GRU layer is imported from tensorflow.keras.layers as GRU.
Complete the code to create a GRU layer with 64 units and return sequences.
gru_layer = GRU([1], return_sequences=True)
The GRU layer is created with 64 units to capture features from the input sequence.
Fix the error in the code to compile the model with Adam optimizer and categorical crossentropy loss.
model.compile(optimizer='[1]', loss='categorical_crossentropy', metrics=['accuracy'])
The Adam optimizer is commonly used for training GRU models on text classification tasks.
Fill both blanks to create a dictionary comprehension that maps words to their lengths only if length is greater than 3.
{word: [1] for word in words if len(word) [2] 3}The dictionary comprehension maps each word to its length if the length is greater than 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their counts if count is greater than 0.
result = [1]: [2] for word, count in word_counts.items() if count [3] 0}
The comprehension maps uppercase words to their counts only if the count is positive.