mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 19:43:03 +02:00
feat: add figure saving
This commit is contained in:
parent
fe23eadb1a
commit
03fa8ab1cc
@ -101,6 +101,7 @@ plt.plot(loss_values)
|
||||
plt.xlabel('Learning Step')
|
||||
plt.ylabel('Loss')
|
||||
plt.title('Loss Value')
|
||||
plt.savefig('loss_value.png')
|
||||
plt.show()
|
||||
|
||||
# Plot the accuracy on train set after each epoch
|
||||
@ -108,6 +109,7 @@ plt.plot(train_acc_values)
|
||||
plt.xlabel('Epoch')
|
||||
plt.ylabel('Train Accuracy')
|
||||
plt.title('Accuracy on Train Set')
|
||||
plt.savefig('train_accuracy.png')
|
||||
plt.show()
|
||||
|
||||
# Plot the accuracy on validation set after each epoch
|
||||
@ -115,4 +117,5 @@ plt.plot(val_acc_values)
|
||||
plt.xlabel('Epoch')
|
||||
plt.ylabel('Validation Accuracy')
|
||||
plt.title('Accuracy on Validation Set')
|
||||
plt.savefig('validation_accuracy.png')
|
||||
plt.show()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user