This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
replicate_experiment_2.sh
57 lines (47 loc) · 3.87 KB
/
replicate_experiment_2.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
echo "************************ replicating experiment 2 (rotated MNIST) ***********************"
echo " >>>>>>>> Plastic (Naive) SGD "
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 1234
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --sedd 4567
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 7891
echo ""
echo " >>>>>>>> Stable SGD "
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.5 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 1234
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.5 --hiddens 256 --batch-size 10 --dropout 0.5 --sedd 4567
python -m stable_sgd.main --dataset rot-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.5 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 7891
echo ""
echo ">>>>>>>>> Other Methods (ER, A-GEM, EWC)"
echo "Make sure you have tensorflow==1.12 installed. (see the readme doc)"
cd ./external_libs/continual_learning_algorithms
bash replicate_mnist.sh rot-mnist
cd ../..
echo "************************ replicating experiment 2 (permuted MNIST) ***********************"
echo " >>>>>>>> Plastic (Naive) SGD "
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 1234
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 4567
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 7891
echo ""
echo " >>>>>>>> Stable SGD "
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 1234
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 4567
python -m stable_sgd.main --dataset perm-mnist --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 7891
echo ""
echo ">>>>>>>>> Other Methods (ER, A-GEM, EWC)"
echo "Make sure you have tensorflow==1.12 installed. (see the readme doc)"
cd ./external_libs/continual_learning_algorithms
bash replicate_mnist.sh perm-mnist
cd ../..
echo "************************ replicating experiment 2 (Split CIFAR-100) ***********************"
echo " >>>>>>>> Plastic (Naive) SGD "
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 1234
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 4567
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.01 --gamma 1.0 --hiddens 256 --batch-size 10 --dropout 0.0 --seed 7891
echo ""
echo " >>>>>>>> Stable SGD "
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 1234
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 4567
python -m stable_sgd.main --dataset cifar100 --tasks 20 --epochs-per-task 1 --lr 0.1 --gamma 0.8 --hiddens 256 --batch-size 10 --dropout 0.5 --seed 7891
echo ""
echo ">>>>>>>>> Other Methods (ER, A-GEM, EWC)"
echo "Make sure you have tensorflow==1.12 installed. (see the readme doc)"
cd ./external_libs/continual_learning_algorithms
bash replicate_cifar.sh