lvvignesh2122's picture
Phase 1: Memory agent with ChromaDB - baseline heuristic loop complete
4b7d982
raw
history blame contribute delete
498 Bytes
import pandas as pd
import matplotlib.pyplot as plt
import os
if __name__ == "__main__":
df = pd.read_csv("logs/scores.csv")
plt.plot(df["episode"], df["score"], marker='o')
plt.xlabel("Episode")
plt.ylabel("Score")
plt.title("Heuristic Agent Learning Curve")
plt.grid(True)
# Save the plot explicitly as well
os.makedirs("logs", exist_ok=True)
plt.savefig("logs/learning_curve.png")
plt.show()
print("Plot saved to logs/learning_curve.png")