Deep Learning, Sentiment Analysis, Machine Learning, Editors Pick, Hands On Tutorials.
plt.ylabel(metric) plt.legend([metric, 'val_'+metric]) plt.figure(figsize=(16, 8)) plt.subplot(1, 2, 1) plot_graphs(history, 'accuracy') plt.ylim(None, 1) plt.subplot(1, 2, 2) plot_graphs(history, 'loss') plt.ylim(0, None) Here you’re also leveraging code from the handy example from TensorFlow’s