forked from sebwindm/masterarbeit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.sh
More file actions
10 lines (8 loc) · 630 Bytes
/
plot.sh
File metadata and controls
10 lines (8 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# gnuplot must be installed for this script to work
# Howto: run "sh plot.sh" in the command line once
# ReinforcementLearning/avg_reward_adjusted_agent.py is training
# The files "q_values_learned_results.csv" and "rewards_per_period.csv" must exist
# (they get created automatically by avg_reward_adjusted_agent.py when it trains the model)
gnuplot -e "set key autotitle columnhead; plot for [col=2:4] 'q_values_learned_results.csv' using 1:col with lines; pause mouse close; " &
gnuplot -e "set key autotitle columnhead; plot for [col=2:3] 'rewards_per_period.csv' using 1:col with points; pause mouse close; " &