Skip to content
Snippets Groups Projects
Commit 4eead764 authored by Majdi Karim's avatar Majdi Karim
Browse files

Update a2c_sb3_cartpole.py

parent eb521dfe
Branches
No related tags found
No related merge requests found
...@@ -91,3 +91,31 @@ for i in range(500): ...@@ -91,3 +91,31 @@ for i in range(500):
env.close() env.close()
# Plot the policy loss against iterations
plt.plot([i for i in range(0,500)],episodes_rewards)
plt.xlabel('Iterations')
plt.ylabel('Policy Loss')
plt.title('Policy Loss vs. Iterations')
plt.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment