-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit_controls.sh
executable file
·68 lines (59 loc) · 3.7 KB
/
submit_controls.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# ./submit_controls.sh 2>&1 | tee -a logs/controls.log
# Repetitions of control models to test the influence of various computational ingredients
# * Ignore Distractors without pretraining*
for i in $(seq 0 19);
do
echo Ignore Distractors no pretraining $i
python3 main.py --model_type=pretrained_ventral-cnn-mse-finetune --no_pretrain --sort --pass_penult --train_on=both --use_loss=both --opt=Adam --wd=0.00001 --same --challenge=distract012 --shape_input=logpolar --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE FGHJ --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i --grid=6 --ventral='ventral_cnn-lrelu_hsize-25_logpolar_num1-5_nl-0.74_diff-0-6_grid6_policy-cheat+jitter_lum-[0.1, 0.4, 0.7, 0.3, 0.6, 0.9]_trainshapes-BCDEFGHJsame_distract012_logpolar_40000_loss-mse_opt-Adam_drop0.4_sort_200eps_rep0_ep-200.pt'
pid=$!
wait $pid
done
# Recurrent control (Simple Counting)
for i in $(seq 0 19);
do
echo Recurrent control $i
python3 main.py --if_exists=force --model_type=recurrent_control --train_on=shape --sort --use_loss=both --opt=Adam --wd=0.00001 --same --shape_input=noise --whole_image --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE FGHJ --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i
pid=$!
wait $pid
done
# MLP with map
for i in $(seq 0 19);
do
echo mlp $i
python3 main.py --if_exists=force --model_type=mlp --train_on=shape --sort --use_loss=both --opt=Adam --wd=0.00001 --same --shape_input=noise --whole_image --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE FGHJ --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i
pid=$!
wait $pid
done
# MLP without map
for i in $(seq 0 19);
do
echo mlp $i
python3 main.py --if_exists=force --model_type=mlp --train_on=shape --sort --use_loss=num --opt=Adam --wd=0.00001 --same --shape_input=noise --whole_image --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE FGHJ --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i
pid=$!
wait $pid
done
# Coherence Illusion Test
for i in $(seq 0 19);
do
echo coh $i
python3 main.py --model_type=rnn_classifier2stream --sort --train_on=both --use_loss=both --opt=Adam --wd=0.00001 --mixed --shape_input=logpolar --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE BCDE --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i --grid=6
pid=$!
wait $pid
done
# CNN coherence illusion
for i in $(seq 0 19);
do
echo coh $i
python3 main.py --model_type=bigcnn --whole_image --sort --train_on=both --use_loss=both --opt=Adam --wd=0.00001 --mixed --shape_input=logpolar --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE BCDE --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i --grid=6
pid=$!
wait $pid
done
## Misaligned streams control
for i in $(seq 0 19);
do
echo misalign_sim $i
python3 main.py --model_type=rnn_classifier2stream --misalign --sort --train_on=both --use_loss=both --opt=Adam --wd=0.00001 --same --shape_input=logpolar --min_num=1 --max_num=5 --n_glimpses=12 --h_size=1024 --train_shapes=BCDE --test_shapes BCDE FGHJ --noise_level=0.74 --train_size=100000 --test_size=5000 --n_epochs=300 --act=lrelu --dropout=0.5 --rep=$i --grid=6
pid=$!
wait $pid
done