NLP - Sequence Models for NLP
Examine this code snippet:
What is the likely cause of an error during training?
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Bidirectional, LSTM model = Sequential() model.add(Bidirectional(LSTM(32, input_shape=(10, 8)))) model.add(LSTM(16)) model.compile(optimizer='adam', loss='mse')
What is the likely cause of an error during training?
