forked from snap-stanford/KGReasoning
-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.sh
executable file
·58 lines (44 loc) · 2.64 KB
/
example.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
# FB15k-237
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-237-betae -n 128 -b 512 -d 800 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo vec --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-237-betae -n 128 -b 512 -d 400 -g 60 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo beta --valid_steps 15000 \
-betam "(1600,2)"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-237-betae -n 128 -b 512 -d 400 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo box --valid_steps 15000 \
-boxm "(none,0.02)" --tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
# FB15k
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-betae -n 128 -b 512 -d 800 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo vec --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-betae -n 128 -b 512 -d 400 -g 60 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo beta --valid_steps 15000 \
-betam "(1600,2)"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/FB15k-betae -n 128 -b 512 -d 400 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo box --valid_steps 15000 \
-boxm "(none,0.02)" --tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
# NELL
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/NELL-betae -n 128 -b 512 -d 800 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo vec --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/NELL-betae -n 128 -b 512 -d 400 -g 60 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo beta --valid_steps 15000 \
-betam "(1600,2)"
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_train --do_valid --do_test \
--data_path data/NELL-betae -n 128 -b 512 -d 400 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo box --valid_steps 15000 \
-boxm "(none,0.02)" --tasks "1p.2p.3p.2i.3i.ip.pi.2u.up"
## Evaluation
CUDA_VISIBLE_DEVICES=0 python main.py --cuda --do_test \
--data_path data/FB15k-237-betae -n 128 -b 512 -d 400 -g 24 \
-lr 0.0001 --max_steps 450001 --cpu_num 1 --geo box --valid_steps 15000 \
-boxm "(none,0.02)" --tasks "1p.2p.3p.2i.3i.ip.pi.2u.up" --checkpoint_path $CKPT_PATH