-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_python2.sh
57 lines (47 loc) · 1.41 KB
/
run_python2.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
#Cartesian product relations
#
echo results of Cartesian product relations;
cd ./Cartesian-product
mkdir output
python fb15k_cartesian_product.py > ./output/cartesian_product_results.out
# results of AMIE
#
echo results of AMIE;
cd ../AMIE
mkdir output
python combine_results.py > ./output/amie_results.out
#detailed results
#
echo detailed results;
cd ../Models-detailed-results
mkdir output
python result_by_relcategory.py > ./output/tables_9_10_12.out
python reverse_percentage.py > ./output/table_7.out
python detailed_results.py > ./output/table_8.out
python heatmap.py
#detailed results
#
echo simple rule model;
cd ../simple_rule
mkdir output
python simplerule_model.py > ./output/simple_rule.out
cd ../OpenKE_FB15k
bash make.sh
mkdir output
mkdir res
echo results of models using OpenKE framework;
echo "Training and testing models on FB15k";
#FB15k
python train_distmult.py > ./output/distmult_FB15K.out
echo results of DistMult are ready;
python train_complex.py > ./output/complex_FB15K.out
echo results of ComplEX are ready;
python train_transd.py > ./output/transd_FB15K.out
echo results of TransD are ready;
python train_transe.py > ./output/transe_FB15K.out
echo results of TransE are ready;
python train_transh.py > ./output/transh_FB15K.out
echo results of TransH are ready;
python train_transr.py > ./output/transr_FB15K.out
echo results of TransR are ready;
echo results of OpenKE on FB15k are saved in folder output;