NLP - Sequence Models for NLP
You wrote this code to build an RNN model for text classification but get an error:
What is the most likely cause of the error?
model = Sequential() model.add(SimpleRNN(16)) model.add(Dense(1, activation='sigmoid')) model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
What is the most likely cause of the error?
