-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_batch_proxy_laplacian.sh
44 lines (38 loc) · 1.92 KB
/
run_batch_proxy_laplacian.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
CONFIG=proxy_laplacian
GRID=search_space
REPEAT=3
MAX_JOBS=12
SLEEP=1
MAIN=main_proxy_le
# generate configs (after controlling computational budget)
# please remove --config_budget, if don't control computational budget
python configs_gen.py --config configs/personal/${CONFIG}.yaml \
--grid grids/personal/${GRID}.txt \
--out_dir configs
#python configs_gen.py --config configs/ChemKG/${CONFIG}.yaml --config_budget configs/ChemKG/${CONFIG}.yaml --grid grids/ChemKG/${GRID}.txt --out_dir configs
# run batch of configs
# Args: config_dir, num of repeats, max jobs running, sleep time
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# rerun missed / stopped experiments
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# rerun missed / stopped experiments
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# aggregate results for the batch
python agg_batch_proxy.py --dir results/${CONFIG}_grid_${GRID}
# python agg_batch_proxy.py --dir results/proxy3-1_grid_proxy_mod_small
GRID=proxy_mod216_2
python configs_gen.py --config configs/personal/${CONFIG}.yaml \
--grid grids/personal/${GRID}.txt \
--out_dir configs
#python configs_gen.py --config configs/ChemKG/${CONFIG}.yaml --config_budget configs/ChemKG/${CONFIG}.yaml --grid grids/ChemKG/${GRID}.txt --out_dir configs
# run batch of configs
# Args: config_dir, num of repeats, max jobs running, sleep time
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# rerun missed / stopped experiments
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# rerun missed / stopped experiments
bash parallel.sh configs/${CONFIG}_grid_${GRID} $REPEAT $MAX_JOBS $SLEEP $MAIN
# aggregate results for the batch
python agg_batch_proxy.py --dir results/${CONFIG}_grid_${GRID}
# python agg_batch_proxy.py --dir results/proxy3-1_grid_proxy_mod_small