ium_464913/plot.py

25 lines
534 B
Python
Raw Normal View History

2024-05-04 16:19:51 +02:00
import numpy as np
2024-05-04 16:23:32 +02:00
import matplotlib.pyplot as plt
2024-05-04 16:19:51 +02:00
def main():
accuracy = []
2024-05-04 16:23:32 +02:00
build_numbers = []
2024-05-04 16:19:51 +02:00
with open("evaluation/metrics.txt") as f:
for line in f:
2024-05-04 16:23:32 +02:00
accuracy.append(float(line.split(",")[0]))
build_numbers.append(int(line.split(",")[1]))
2024-05-04 16:19:51 +02:00
2024-05-04 16:23:32 +02:00
plt.plot(build_numbers, accuracy)
plt.xlabel("Build Number")
plt.ylabel("Accuracy")
plt.title("Accuracy of the model over time")
plt.show()
plt.savefig("evaluation/accuracy.png")
2024-05-04 16:19:51 +02:00
if __name__ == "__main__":
main()