-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmmd.sh
67 lines (62 loc) · 1.58 KB
/
mmd.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
#!/bin/bash
# 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=2
for seed in 3000 1000 42 10 0
do
for i in 0 1 2 3 8
do
CUDA_VISIBLE_DEVICES=$cudaid python ../main/main_mmd.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--max_seq_length 128 \
--train_seed $seed \
--num_epochs $ne \
--beta 0.1
done
done
for seed in 3000 1000 42 10 0
do
for i in 4 5 9 10 11
do
CUDA_VISIBLE_DEVICES=$cudaid python ../main/main_mmd.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--max_seq_length 128 \
--train_seed $seed \
--num_epochs $ne \
--beta 0.01
done
done
for seed in 3000 1000 42 10 0
do
for i in 6 7
do
CUDA_VISIBLE_DEVICES=$cudaid python ../main/main_mmd.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--max_seq_length 128 \
--train_seed $seed \
--num_epochs $ne \
--beta 0.001
done
done
srcd=(computers cameras shoes computers cameras computers)
tgtd=(watches watches watches shoes shoes cameras)
cudaid=1
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_mmd.py \
--src ${srcd[$i]} \
--tgt ${tgtd[$i]} \
--max_seq_length 256 \
--train_seed $seed \
--num_epochs $ne \
--beta 0.01
done
done