-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevaluate_neurips2025_reproduce.sh
More file actions
52 lines (46 loc) · 3.43 KB
/
evaluate_neurips2025_reproduce.sh
File metadata and controls
52 lines (46 loc) · 3.43 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# tmux start-server
SESSION_NAME="targetnet_generate_neurips25"
# Check if the session already exists
mkdir -p reproducability_results
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
echo "Session $SESSION_NAME already exists. Attaching to it."
tmux attach-session -t $SESSION_NAME
else
# Create a new session and name it
tmux new-session -d -s $SESSION_NAME
COMMANDS=(
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w25_euc_200_test --initial_performance --target_location 'reproducability_results'"
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w25_euc_200_test --target_location 'reproducability_results'"
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t50_s0_f10_w25_euc_2000_uni --target_location 'reproducability_results'"
"python evaluation/evaluation.py --start_problem 1 --end_problem 30 --env_location data/problem_set_r20_t100_s0_f10_w25_euc_200 --target_location 'reproducability_results'"
"python evaluation/evaluation.py --start_problem 1 --end_problem 10 --env_location data/problem_set_r40_t200_s0_f10_w25_euc_200 --target_location 'reproducability_results'"
# "python evaluation/evaluation.py --start_problem 1 --end_problem 10 --env_location data/problem_set_r80_t400_s0_f10_w25_euc_200"
# Ablations
## 10 robot 20 task [5% time window] 25% wait time
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f5_w25_euc_2000 --target_location 'reproducability_results'"
## 10 robot 20 tasks [10% time window] 25% wait time
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s5_f10_w25_euc_2000 --target_location 'reproducability_results'"
## 10 robot 20 task 10% time window [No wait time]
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w0_euc_2000 --target_location 'reproducability_results'"
## 10 robot 20 task 10% time window [50% wait time]
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w50_euc_2000 --target_location 'reproducability_results'"
## 10 robot 20 task 10% time window 25% wait time fast
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w25_euc_2000_test_fast --target_location 'reproducability_results'"
## 10 robot 20 task 10% time window 25% wait time slow
"python evaluation/evaluation.py --start_problem 1 --end_problem 200 --env_location data/problem_set_r10_t20_s0_f10_w25_euc_2000_test_slow --target_location 'reproducability_results'"
)
i=0
for command in "${COMMANDS[@]}"
do
i=$((i+1))
name="eval_${i}"
tmux new-window -n $name
tmux send-keys -t $name 'export PYTHONHASHSEED=0' C-m # ensures full reprodibility and internal consistency
tmux send-keys -t $name 'echo "Hello from pane ${i}"' C-m
tmux send-keys -t $name 'conda activate targetnet' C-m
tmux send-keys -t $name "${command}" C-m
done
# Attach to the created session
tmux attach-session -t $SESSION_NAME
fi