The code of TransERR accepted by the LREC-COLING 2024.
pip install ogb==1.3.6
PyTorch >= 1.0
We list the best hyperparameters setting of TransERR on 10 benchmark datasets.
Benchmark | embedding dimension |
learning rate |
negative sample |
||
---|---|---|---|---|---|
ogbl-wikikg2 | 200 | 128 | 1.0 | 15 | |
ogbl-wikikg2 | 100 | 128 | 1.0 | 8 | |
ogbl-biokg | 2000 | 128 | 1.0 | 20 | |
ogbl-biokg | 1000 | 128 | 1.0 | 15 | |
YAGO3-10 | 1000 | 256 | 0.5 | 30 | |
DB100K | 1000 | 128 | 0.5 | 20 | |
FB15K | 1500 | 256 | 1.0 | 26 | |
WN18 | 1000 | 128 | 0.5 | 10 | |
FB15K-237 | 1000 | 128 | 0.5 | 20 | |
WN18RR | 1000 | 128 | 0.5 | 12 | |
Sports | 200 | 128 | 0.5 | 5 | |
Location | 200 | 128 | 0.5 | 10 |
# Run with default config
cd wikikg2
bash examples.sh
We have included a set of training logs, available at wikikg2/log
, which have been generated using ten different random seeds, designated by numbers between 0 and 9. These logs are intended to aid in reproducing and validating our experimental results.
# Run with default config
cd biokg
bash examples.sh
# Run with default config
cd code
bash best_config.sh