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")
|
2024-05-04 16:39:48 +02:00
|
|
|
plt.xticks(range(min(build_numbers), max(build_numbers) + 1))
|
2024-05-04 16:23:32 +02:00
|
|
|
plt.show()
|
|
|
|
|
|
|
|
plt.savefig("evaluation/accuracy.png")
|
2024-05-04 16:19:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|