forked from AndreasMadsen/stable-nalu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmclstm_figure2.sh
66 lines (60 loc) · 1.89 KB
/
mclstm_figure2.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
#/usr/bin/env sh
EXPNAME="sequential_mnist_sum"
### MC-LSTM ###
seq 0 99 | xargs -n1 -P10 -i -- \
python experiments/sequential_mnist.py \
--operation cumsum \
--layer-type MCLSTM \
--interpolation-length 10 \
--extrapolation-lengths [1,10,100,200,300,400,500,600,700,800,900,1000] \
--regualizer 0 \
--mnist-regularizer 1e-4 \
--seed {} \
--max-epochs 1000 \
--name-prefix "$EXPNAME" \
--remove-existing-data
### LSTM ###
seq 0 99 | xargs -n1 -P10 -i -- \
python experiments/sequential_mnist.py \
--operation cumsum \
--layer-type LSTM \
--interpolation-length 10 \
--extrapolation-lengths [1,10,100,200,300,400,500,600,700,800,900,1000] \
--regualizer 0 \
--mnist-regularizer 1e-4 \
--seed {} \
--max-epochs 1000 \
--name-prefix "$EXPNAME" \
--remove-existing-data
### NAU ###
seq 0 99 | xargs -n1 -P10 -i -- \
python experiments/sequential_mnist.py \
--operation cumsum \
--layer-type ReRegualizedLinearNAC \
--interpolation-length 10 \
--extrapolation-lengths [1,10,100,200,300,400,500,600,700,800,900,1000] \
--regualizer-z 1 \
--seed {} \
--max-epochs 1000 \
--name-prefix "$EXPNAME" \
--remove-existing-data
### Reference ###
seq 0 9 | xargs -n1 -P10 -i -- \
python experiments/sequential_mnist.py \
--operation cumsum \
--layer-type ReRegualizedLinearNAC \
--model-simplification solved-accumulator \
--interpolation-length 10 \
--extrapolation-lengths '[1,10,100,200,300,400,500,600,700,800,900,1000]' \
--seed {} \
--max-epochs 1000 \
--name-prefix "${EXPNAME}_reference" \
--remove-existing-data
### create figure ###
python export/sequential_mnist.py \
--tensorboard-dir "tensorboard/${EXPNAME}_reference/" \
--csv-out "results/${EXPNAME}_reference.csv"
python export/sequential_mnist.py \
--tensorboard-dir "tensorboard/$EXPNAME/" \
--csv-out "results/${EXPNAME}_long.csv"
Rscript -e "source('export/sequential_mnist_sum_long.r')"