Recurrent Neural Network, Text Classification, Sentiment Analysis, Imdb Text Classification, Binary Classification.
model.compile(loss=tf.keras.losses.BinaryCrossentropy(from_logits=True), optimizer = tf.keras.optimizers.Adam(1e-4), metrics = ['accuracy']) Train the model history = model.fit(train_dataset, epochs = 10, validation_data = test_dataset, validation_steps = 30) Output: Evaluate the model test_loss,