-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·26 lines (21 loc) · 1.21 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Define the list of alpha values
#alphas=(0.1 0.2 0.3 0.4 0.5 0.6)
alphas=(0.2)
# Path to the CSV file containing community risk values
csv_path="aggregated_weekly_risk_levels.csv"
# Loop through each alpha value and run the DQN and Myopic agents sequentially
for alpha in "${alphas[@]}"; do
# echo "Running DQN agent training and evaluation with alpha = $alpha"
# python3 main.py train_and_eval --alpha "$alpha" --agent_type "dqn_custom" --csv_path "$csv_path" --algorithm "dqn"
echo "Running PPO agent training and evaluation with alpha = $alpha"
python3 main.py train_and_eval --alpha "$alpha" --agent_type "ppo_custom" --csv_path "$csv_path" --algorithm "dqn"
# echo "Running A2C agent training and evaluation with alpha = $alpha"
# python3 main.py train_and_eval --alpha "$alpha" --agent_type "a2c_custom" --csv_path "$csv_path" --algorithm "dqn"
# echo "Running Tabular Q agent training and evaluation with alpha = $alpha"
# python3 main.py train_and_eval --alpha "$alpha" --agent_type "q_learning" --csv_path "$csv_path" --algorithm "q_learning"
# Add a delay of 5 seconds after each run
echo "Pausing for 5 seconds before the next run..."
sleep 5
done
echo "All training and evaluation runs completed."