4483_project / plot.py
dadadar's picture
Upload 12 files
ccdb773
raw
history blame contribute delete
517 Bytes
import matplotlib.pyplot as plt
epochs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
train_accuracy = [99, 99, 98, 98, 98, 99, 98, 99, 98, 99]
val_accuracy = [99, 99, 98, 98, 98, 99, 98, 99, 98, 99]
plt.figure(figsize=(10, 6))
plt.plot(epochs, train_accuracy, label='Train Accuracy', marker='o')
plt.plot(epochs, val_accuracy, label='Validation Accuracy', marker='o')
plt.xlabel('Epochs')
plt.ylabel('Accuracy (%)')
plt.title('Training and Validation Accuracy')
plt.legend()
plt.grid(True)
plt.show()
plt.savefig('plot.png')