leuchine / QuatE

Pytorch implementation of Quaternion Knowledge Graph Embedding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuatE

Implementation of paper "Quaternion Knowledge Graph Embedding"

Hyper-parameters for reproducing the reported results are provided in the train_QuatE_dataset.py.

It seems that we don't have to normalize the relation Quaternion.

How to run

  1. export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64
  2. CUDA_VISIBLE_DEVICES=0 python3 train_QuatE_dataset.py

NOTE: the code is based on the OpenKE project.

About

Pytorch implementation of Quaternion Knowledge Graph Embedding.


Languages

Language:Python 59.3%Language:C 20.2%Language:C++ 16.8%Language:Objective-C 3.6%Language:Shell 0.1%