-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathed.sh
50 lines (46 loc) · 1.37 KB
/
ed.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
# for similar domains and different domains
srcd=(wa1 ab ds da dzy fz ri ri ia ia b2 b2)
tgtd=(ab wa1 da ds fz dzy ab wa1 da ds fz dzy)
ne=40
cudaid=0
for seed in 3000 1000 42 10 0
do
for i in 0 1 2 3 4 5 6 7 8 9 10 11
do
CUDA_VISIBLE_DEVICES=$cudaid python ../main/main_ed.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--srcfix ""\
--tgtfix ""\
--max_seq_length 128 \
--train_seed $seed \
--num_epochs $ne
done
done
# for WDC datasets
srcd=(computers cameras shoes computers cameras computers)
tgtd=(watches watches watches shoes shoes cameras)
cudaid=0
ne=40
for seed in 3000 1000 42 10 0
do
for i in 0 1 2 3 4 5 6
do
CUDA_VISIBLE_DEVICES=$cudaid python ../main/main_ed.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--srcfix ""\
--tgtfix ""\
--max_seq_length 256 \
--train_seed $seed \
--num_epochs $ne
CUDA_VISIBLE_DEVICES=$cudaid python main_ed.py \
--src ${tgtd[$i]} \
--tgt ${srcd[$i]} \
--srcfix ""\
--tgtfix ""\
--max_seq_length 256 \
--train_seed $seed \
--num_epochs $ne
done
done