-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_ranked_mnist_error_bar.sh
43 lines (34 loc) · 1.28 KB
/
run_ranked_mnist_error_bar.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
#!/bin/sh
# Main dataset path
main_path="/mnt/disk2/ranked_MNIST_family"
num_epoch=50
backbone="resnet18"
dataset="ranked_mnist"
#methods=("lsep" "clr" "gaussian_mlr")
methods=("gaussian_mlr" "lsep" "clr")
supervisions=("weak" "strong")
num_runs=5
# Create empty list of config paths and experiment names
config_paths=()
experiment_names=()
# Add config paths and experiment names
# Gray Small Scale
config_paths+=("dataset_creation/configs/ranked_mnist_gray_small_scale.json")
experiment_names+=("gray_small_scale")
# Gray Small Brightness
config_paths+=("dataset_creation/configs/ranked_mnist_gray_small_brightness.json")
experiment_names+=("gray_small_brightness")
# for all methods and supervisions and num_runs and configs
for method in "${methods[@]}"
do
for supervision in "${supervisions[@]}"
do
for i in `seq 0 $((${#config_paths[@]} - 1))`
do
config_path=${config_paths[$i]}
experiment_name="error_bar_"${experiment_names[$i]}"_"$backbone"_"$method"_"$supervision
echo "Running experiment $experiment_name"
python make_error_bar.py --config_path $config_path --main_path $main_path --experiment_name $experiment_name --backbone $backbone --dataset $dataset --method $method --num_runs $num_runs
done
done
done