Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- # Plot the accuracy
- plt.figure(figsize=(12, 4))
- plt.subplot(1, 2, 1)
- plt.plot(history.history['accuracy'])
- plt.title('Model Accuracy')
- plt.ylabel('Accuracy')
- plt.xlabel('Epoch')
- # Plot the loss
- plt.subplot(1, 2, 2)
- plt.plot(history.history['loss'])
- plt.title('Model Loss')
- plt.ylabel('Loss')
- plt.xlabel('Epoch')
- plt.tight_layout()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement