Home

Awesome

LineaRE

Source code for ICDM2020 research paper "LineaRE: Simple but Powerful Knowledge Graph Embedding for Link Prediction", a.k.a., LineaRE.<br> You can easily add your own model to the code framework.

Update!

We reorganized and optimized the code (/new code). The new version of the code has clearer logical structure and faster running speed, and supports multi GPUs parallel training to further accelerate the training speed.

Code

Running LineaRE is very easy, just:

  1. put your arguments in the json files <code> ./config/*.json </code>, e.g. <code> config_FB15k.json </code>
  2. execute command, <code> python3 main.py </code>

Code files

Totally six python files:

Dependencies

Datasets

Four datasets: FB15k, WN18, FB15k-237, WN18RR. (the same as [1])

Parameters(./config/config_FB15k.json)

Citation

If you use this model or code, please cite it as follows:

@inproceedings{peng2020lineare,
  author    = {Yanhui Peng and Jing Zhang},
  editor    = {Claudia Plant and Haixun Wang and Alfredo Cuzzocrea and Carlo Zaniolo and Xindong Wu},
  title     = {LineaRE: Simple but Powerful Knowledge Graph Embedding for Link Prediction},
  booktitle = {IEEE International Conference on Data Mining, {ICDM}},
  pages     = {422--431},
  year      = {2020},
  url       = {https://ieeexplore.ieee.org/document/9338434}
}

References

<div id="refer-1"></div>