From cdd9cd6977e498cc3d7f908f5141fa1344b60ed3 Mon Sep 17 00:00:00 2001 From: luigiba Date: Tue, 30 Jul 2019 15:23:11 +0200 Subject: [PATCH] First Commit --- .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 490 ++++++++++++++ Config.py | 632 ++++++++++++++++++ LICENSE | 21 + Model.py | 99 +++ OpenKE_new_Spark.iml | 9 + README.md | 2 + TransD.py | 98 +++ TransE.py | 58 ++ TransH.py | 82 +++ TransR.py | 87 +++ __pycache__/Config.cpython-36.pyc | Bin 0 -> 18420 bytes __pycache__/Model.cpython-36.pyc | Bin 0 -> 3932 bytes __pycache__/TransD.cpython-36.pyc | Bin 0 -> 3675 bytes __pycache__/TransE.cpython-36.pyc | Bin 0 -> 2230 bytes __pycache__/TransH.cpython-36.pyc | Bin 0 -> 2815 bytes __pycache__/TransR.cpython-36.pyc | Bin 0 -> 3115 bytes .../distribute_training.cpython-36.pyc | Bin 0 -> 7691 bytes base/Base.cpp | 177 +++++ base/Corrupt.h | 149 +++++ base/Random.h | 41 ++ base/Reader.h | 365 ++++++++++ base/Setting.h | 127 ++++ base/Test.h | 411 ++++++++++++ base/Triple.h | 36 + base/Valid.h | 78 +++ distribute_training.py | 292 ++++++++ main_spark.py | 370 ++++++++++ make.sh | 1 + release/Base.so | Bin 0 -> 74416 bytes run.sh | 249 +++++++ 33 files changed, 3894 insertions(+) create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 Config.py create mode 100644 LICENSE create mode 100644 Model.py create mode 100644 OpenKE_new_Spark.iml create mode 100644 README.md create mode 100644 TransD.py create mode 100644 TransE.py create mode 100644 TransH.py create mode 100644 TransR.py create mode 100644 __pycache__/Config.cpython-36.pyc create mode 100644 __pycache__/Model.cpython-36.pyc create mode 100644 __pycache__/TransD.cpython-36.pyc create mode 100644 __pycache__/TransE.cpython-36.pyc create mode 100644 __pycache__/TransH.cpython-36.pyc create mode 100644 __pycache__/TransR.cpython-36.pyc create mode 100644 __pycache__/distribute_training.cpython-36.pyc create mode 100644 base/Base.cpp create mode 100644 base/Corrupt.h create mode 100644 base/Random.h create mode 100644 base/Reader.h create mode 100644 base/Setting.h create mode 100644 base/Test.h create mode 100644 base/Triple.h create mode 100644 base/Valid.h create mode 100644 distribute_training.py create mode 100644 main_spark.py create mode 100644 make.sh create mode 100755 release/Base.so create mode 100644 run.sh diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..4c1170f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..80f322d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..ea9b0b8 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,490 @@ + + + + + + + + + + + + + + + + + head_lef + head_rig + tail_rig + bern + get_similar_entites + summary_op + _global_step_tensor + config + argv + TODO + def set_mode + return + batch_h_addr + res_pos + corrupt_head + early_stop_stopping_setp + rand_max + valid_ + corrupt + tail_lef + tail_type + trainList + judgeHeadBatch + tripleTotal + rand + corrupt( + setConstrainFlag + getTripleTotal + std + workThreads + + + + + + + + + + + + + + + + + + + + + + + + + + + +