ium_464937/plot.py

22 lines
553 B
Python
Raw Normal View History

2024-05-15 00:07:51 +02:00
import matplotlib.pyplot as plt
def main():
accuracy = []
build_numbers = []
with open("maetrics.txt") as f:
for line in f:
accuracy.append(float(line.split(",")[0]))
build_numbers.append(int(line.split(",")[1]))
plt.plot(build_numbers, accuracy)
plt.xlabel("Build Number")
plt.ylabel("Accuracy")
plt.title("Accuracy of the model over time")
plt.xticks(range(min(build_numbers), max(build_numbers) + 1))
plt.show()
plt.savefig("plot.png")
if __name__ == "__main__":
main()