-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
52 lines (44 loc) · 2.11 KB
/
run.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
# # # MIND -> Adressa
# for few_shot in _200_2shot _200_4shot _200_6shot
# do
# for few_shot_method in 2
# do
# for random_seed in 42
# do
# python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/engTonor --loss_weight=0.2 --target_domain_sim=0.6 --news_cls_iter=0 --random_seed=$random_seed
# python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/engTonor --loss_weight=0.2 --target_domain_sim=0.6 --news_cls_iter=1 --random_seed=$random_seed --loss_weight_align=1
# done
# done
# done
## # MIND -> Adressa
#for few_shot in _200_2shot _200_4shot _200_6shot
#do
# for few_shot_method in 2
# do
# for random_seed in 42 0 100 1000 2022
# do
## CUDA_VISIBLE_DEVICES=1 python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/engTonor --loss_weight=0.2 --target_domain_sim=0.6 --news_cls_iter=0 --random_seed=$random_seed
#
# CUDA_VISIBLE_DEVICES=0 python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/engTonor --loss_weight=0.2 --target_domain_sim=0.6 --news_cls_iter=1 --random_seed=$random_seed --loss_weight_align=1
# done
# done
#done
#_200_4shot _200_2shot
# Adressa -> MIND
for few_shot in _0_0shot _200_2shot _200_4shot
do
for few_shot_method in 2
do
for sim in 0.5
do
for align_weigh in 1
do
for random_seed in 42 0 100 1000 2022
do
CUDA_VISIBLE_DEVICES=0 python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/final_data --target_domain_sim=$sim --random_seed=$random_seed --loss_weight=0.2 --news_cls_iter=0
# CUDA_VISIBLE_DEVICES=0 python execute_few_shot_new_align_newscls.py --few_shot=$few_shot --few_shot_method=$few_shot_method --range=Model/final_data --target_domain_sim=$sim --random_seed=$random_seed --loss_weight=0.2 --news_cls_iter=1 --loss_weight_align=$align_weigh
done
done
done
done
done