Advertisement
xosseh

plot

Mar 13th, 2024
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2.  
  3. # Plot the accuracy
  4. plt.figure(figsize=(12, 4))
  5. plt.subplot(1, 2, 1)
  6. plt.plot(history.history['accuracy'])
  7. plt.title('Model Accuracy')
  8. plt.ylabel('Accuracy')
  9. plt.xlabel('Epoch')
  10.  
  11. # Plot the loss
  12. plt.subplot(1, 2, 2)
  13. plt.plot(history.history['loss'])
  14. plt.title('Model Loss')
  15. plt.ylabel('Loss')
  16. plt.xlabel('Epoch')
  17.  
  18. plt.tight_layout()
  19. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement