Recurrent Neural Network, Text Classification, Sentiment Analysis, Imdb Text Classification, Binary Classification.
test_acc = model.evaluate(test_dataset) print('Test Loss:', test_loss) print('Test Accuracy:', test_acc) Output: Plot the accuracy and loss import matplotlib.pyplot as plt def plot_graphs(history, metric): plt.plot(history.history[metric]) plt.plot(history.history['val_'+metric], '')