Update README.md
Code for paper PairRE: Knowledge Graph Embeddings via Paired Relation Vectors.
This implementation of PairRE for Open Graph Benchmak datasets (ogbl-wikikg and ogbl-biokg) is based on OGB. Thanks for their contributions.
To run the code, you need the following dependencies:
The results of PairRE on ogbl-wikikg, ogbl-biokg and ogbl-wikikg2 are as follows.
cd wikikg && sh examples.sh
cd biokg && sh examples.sh
Please update ogb package to version 1.2.4. The hyperparameters are same to the experiments in ogbl-wikikg.
The details of the optional hyperparameters can be found in examples.sh.
These experiments are based on this repository. We add the score function of PairRE to this repository directly.
Commands to reproduce the reuslts are:
FB15k-237
bash run.sh train PairRE FB15k-237 0 0 1024 256 1500 6.0 1.0 0.00005 100000 16 -dr
FB15k:
bash run.sh train PairRE FB15k 0 0 1024 256 1500 15.0 1.0 0.0001 150000 16 -dr
DB100k:
bash run.sh train PairRE DB100K 0 0 1024 256 500 9.0 1.0 0.00005 150000 16 -dr
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
PairRE
Code for paper PairRE: Knowledge Graph Embeddings via Paired Relation Vectors.
This implementation of PairRE for Open Graph Benchmak datasets (ogbl-wikikg and ogbl-biokg) is based on OGB. Thanks for their contributions.
Setup
To run the code, you need the following dependencies:
Results
The results of PairRE on ogbl-wikikg, ogbl-biokg and ogbl-wikikg2 are as follows.
ogbl-wikikg
ogbl-biokg
ogbl-wikikg2
Running the code
ogbl-wikikg
ogbl-biokg
ogbl-wikikg2
Please update ogb package to version 1.2.4. The hyperparameters are same to the experiments in ogbl-wikikg.
The details of the optional hyperparameters can be found in examples.sh.
PairRE for FB15k, FB15k-237 and DB100k
These experiments are based on this repository. We add the score function of PairRE to this repository directly.
Commands to reproduce the reuslts are:
FB15k-237
FB15k:
DB100k: