-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsubmit_opi0_simpler.bash
More file actions
140 lines (132 loc) · 4.8 KB
/
submit_opi0_simpler.bash
File metadata and controls
140 lines (132 loc) · 4.8 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/bin/bash
# Run all experiments for open-pi-zero model on SimplerEnv rollouts
GROUP_NAME=opi0_simpler_v1
# LSTM and MLP
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
model=lstm \
model.lr=1e-4,3e-4,1e-3 \
model.lambda_reg=1e-3,1e-2,1e-1,1 \
train.seed=0-1-2 \
train.exp_suffix=lstm
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
model=indep \
model.lr=1e-4,3e-4,1e-3 \
model.lambda_reg=1e-3,1e-2,1e-1,1 \
train.seed=0-1-2 \
train.exp_suffix=mlp
done
# embed
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
model=embed \
model.n_epochs=1 \
model.distance=cosine,euclid \
model.use_success_only=False \
model.topk=1,5,10 \
model.cumsum=False,True \
train.seed=0-1-2 \
train.exp_suffix=embed
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
model=embed \
model.n_epochs=1 \
model.distance=mahala \
model.use_success_only=False \
model.cumsum=False,True \
train.seed=0-1-2 \
train.exp_suffix=embed
done
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
model=embed \
model.distance=pca_kmeans \
model.pca_dim=32,64,128 \
model.n_clusters=16,32,64 \
model.use_success_only=False \
model.cumsum=False,True \
train.seed=0-1-2 \
train.exp_suffix=embed
done
# Chen's baselines
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
dataset.load_to_cuda=False \
model=rnd \
train.roc_every=50 \
model.batch_size=32 \
model.use_success_only=False \
train.seed=0-1-2 \
train.exp_suffix=chen
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
dataset.horizon_idx_rel=0.0,1.0,mean,concat-2 \
dataset.diff_idx_rel=0.0,1.0,mean,concat-2 \
dataset.load_to_cuda=False \
model=logpzo \
train.roc_every=50 \
model.batch_size=32 \
model.forward_chunk_size=512 \
model.use_success_only=False \
train.seed=0-1-2 \
train.exp_suffix=chen
done
# Handcrafted
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
train.log_precomputed_only=True \
train.seed=0-1-2 \
train.exp_suffix=handcrafted
done
for DATASET in open_pizero_simpler_bridge open_pizero_simpler_fractal; do
python -m failure_prob.train \
--multirun \
train.wandb_group_name=${GROUP_NAME} \
dataset=${DATASET} \
dataset.data_path_prefix=${SAFE_OPENPIZERO_ROLLOUT_ROOT} \
train.log_precomputed_only=True \
train.seed=0-1-2 \
train.exp_suffix=handcrafted_multi
done