ium_464979/IUM_06-plot.py
AWieczarek 8b9327c864 IUM_06
2024-05-06 09:17:27 +02:00

24 lines
558 B
Python

import matplotlib.pyplot as plt
def main():
accuracy = []
build_numbers = []
with open("beer_metrics.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("acc.png")
if __name__ == "__main__":
main()