-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.sh
executable file
·38 lines (29 loc) · 1.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
# ------------------------------------------------------------------ #
# Option: --geo
# --geo allows you to select the model you want to use.
# You can select from the following models:
# 'vec', 'box', 'beta', # Baselines
# 'mlp', 'mlpMixer', # Models
# 'mlp2vector', 'mlpAttention', 'mlpHyperE', # Model Variants
# 'cnn', 'nln' # Extra Models
# ------------------------------------------------------------------ #
# 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 mlp --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2in.3in.inp.pin.pni.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 mlp --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2in.3in.inp.pin.pni.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 mlp --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2in.3in.inp.pin.pni.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 mlp --valid_steps 15000 \
--tasks "1p.2p.3p.2i.3i.ip.pi.2in.3in.inp.pin.pni.2u.up" --checkpoint_path $CKPT_PATH