ledmands
commited on
Commit
·
71d2358
1
Parent(s):
ac49cb8
Added framework for saving charts in plot_improvement.py
Browse files- charts/dqnv2_fig1.png +0 -0
- charts/dqnv2_fig2.png +0 -0
- plot_improvement.py +3 -1
charts/dqnv2_fig1.png
ADDED
|
charts/dqnv2_fig2.png
ADDED
|
plot_improvement.py
CHANGED
|
@@ -16,6 +16,7 @@ def calc_stats(filepath):
|
|
| 16 |
|
| 17 |
# parser = argparse.ArgumentParser()
|
| 18 |
# parser.add_argument("-f", "--filepath", required=True, help="Specify the file path to the agent.", type=str)
|
|
|
|
| 19 |
# args = parser.parse_args()
|
| 20 |
|
| 21 |
# Get the file paths and store in list.
|
|
@@ -44,7 +45,8 @@ plt.ylabel("score")
|
|
| 44 |
plt.bar(runs, means)
|
| 45 |
plt.bar(runs, stds)
|
| 46 |
plt.legend(["Mean evaluation score", "Standard deviation"])
|
| 47 |
-
plt.title("Average Evaluation Score and Standard Deviation\nAdjusted for Outliers
|
| 48 |
plt.show()
|
|
|
|
| 49 |
|
| 50 |
|
|
|
|
| 16 |
|
| 17 |
# parser = argparse.ArgumentParser()
|
| 18 |
# parser.add_argument("-f", "--filepath", required=True, help="Specify the file path to the agent.", type=str)
|
| 19 |
+
# parser.add_argument("-s", "--save", help="Specify whether to save the chart.", action="store_const", const=True)
|
| 20 |
# args = parser.parse_args()
|
| 21 |
|
| 22 |
# Get the file paths and store in list.
|
|
|
|
| 45 |
plt.bar(runs, means)
|
| 46 |
plt.bar(runs, stds)
|
| 47 |
plt.legend(["Mean evaluation score", "Standard deviation"])
|
| 48 |
+
plt.title("Average Evaluation Score and Standard Deviation\nAdjusted for Outliers Agent: dqn_v2")
|
| 49 |
plt.show()
|
| 50 |
+
# plt.savefig("charts/fig1")
|
| 51 |
|
| 52 |
|