-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_syn.sh
45 lines (36 loc) · 932 Bytes
/
run_syn.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
45
dataset="cevae"
n_folds=2
test_frac=0.02
# vars to modify
# methods=("wcp")
# methods=("exact" "inexact")
# methods=("inexact" "exact" "wcp" "naive")
# methods=("TCP")
dr_model="DR"
n_obs=10000
dr_use_Y=1
x_dim=$1
conf_strength=$2
n_estimator=$3
methods=("${@:4}")
seeds=($(seq 1234 1238))
# each run considers n_int = (100 500 1000 5000)
for seed in "${seeds[@]}"
do
for method in "${methods[@]}"
do
launch --gpu=0 --cpu=40 -- python3 run_syn.py \
--cf_method $method \
--density_ratio_model $dr_model \
--n_obs $n_obs \
--dr_use_Y $dr_use_Y \
--conf_strength $conf_strength \
--x_dim $x_dim \
--dataset $dataset \
--seed $seed \
--n_estimator $n_estimator \
--n_folds $n_folds \
--save_path "./results" \
--test_frac $test_frac &>> "./ad_hoc_logs/${dataset}/$(date +"%m_%d_%I_%M")_${method}.log"
done
done